DOCUMENT:Q215374 04-SEP-1999 [vbwin] TITLE :BUG: Selecting "Send to Back" and "Bring to Front" Has No Affect PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:1.0 OPER/SYS: KEYWORDS:kbToolkit kbVBp600bug kbOSWinCEsearch kbGrpDSVB ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Windows CE Toolkit for Visual Basic 6.0, version 1.0 ------------------------------------------------------------------------------- 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 this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION ================ 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 : kbToolkit kbVBp600bug kbOSWinCEsearch kbGrpDSVB Technology : kbVBSearch kbAudDeveloper kbWinCETKVBSearch kbWinCESearch kbWinCETK100VB600 Version : WINDOWS:1.0 Issue type : kbbug Solution Type : kbpending ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1999.