Microsoft KB Archive/215374

= BUG: Selecting "Send to Back" and "Bring to Front" Has No Affect =

Article ID: 215374

Article Last Modified on 8/19/2005

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual Basic 6.0

-



This article was previously published under Q215374



SYMPTOMS
When right-clicking on a control in design time and selecting either "Send to Back" or "Bring to Front," the control appears to be placed accordingly. When the project is run, however, the controls appear as they were originally placed.



CAUSE
The controls are being passed to the VBCE run-time engine in the order that they appear in the VBControls collection of the Extensibility model.



RESOLUTION
Set the ZOrder property of the appropriate controls in code.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior

 * 1) Start a new Windows CE HPC Project in Visual Basic. Form1 is created by default.
 * 2) Place three command buttons on form1 and ensure that they overlap each other.
 * 3) Right-click Command1 and select Bring to Front from the pop-up menu. Note that Command1 is now in front of the other command buttons.
 * 4) Run the project and target either emulation or the remote device. Note that the controls are displayed as they were originally placed on the form.

Additional query words: vbce vbce5 vbce6 wce wince

Keywords: kbbug kbtoolkit kbpending KB215374

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.