DOCUMENT:Q190031 07-AUG-1998 [vbwin] TITLE :PRB: Control Does Not Remain in Lightweight Frame Control PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:6.0 OPER/SYS:WINDOWS KEYWORDS: ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 6.0 --------------------------------------------------------------------- SYMPTOMS ======== A lightweight control is placed within the boundaries of a lightweight Frame control. When you move the lightweight Frame control, the other lightweight control does not move with the Frame control: it remains in the original position. CAUSE ===== The lightweight Frame control is not a true container. RESOLUTION ========== Either use the standard Frame control to contain other controls or just place controls on top of the lightweight Frame so that it visually contains the controls. You can group lightweight OptionButtons by setting their Group properties to the same unique string. STATUS ====== This behavior is by design. MORE INFORMATION ================ Although lightweight or windowless controls can contain other lightweight controls, the lightweight Frame control cannot contain another lightweight control. The next section assumes that you have the lightweight controls installed and registered on your system. Steps to Reproduce Behavior --------------------------- 1. Start a new Standard EXE project in Visual Basic. Form1 is created by default. 2. Add a reference to the Microsoft Windowless Controls 6.0 by completing the following steps: a. From the Project menu, select Components to display the Components dialog box. b. In the Controls Tab, check "Microsoft Windowless Controls 6.0." c. Click OK to close the Components dialog box. 3. Add a WLFrame control to Form1. Select the WLFrame control. 4. Place a second lightweight control within the boundaries of the WLFrame control. 5. Move the WLFrame control. Note that the other lightweight control remains in the original position. REFERENCES ========== For additional information, search Help for "Frame Control (Lightweight)" and the Group property. For additional information, please see the following articles in the Microsoft Knowledge Base: ARTICLE ID: Q189950 TITLE : HOWTO: Install the Microsoft Windowless Controls for VB6 ARTICLE-ID: Q184687 TITLE : INFO: Lightweight Controls in Visual Basic 6.0 Additional query words: kbDSupport kbDSD kbVBp kbVBp600 kbCtrl ====================================================================== Version : WINDOWS:6.0 Platform : WINDOWS Issue type : kbprb ============================================================================= 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 1998.