Microsoft KB Archive/190031

= PRB: Control Does Not Remain in Lightweight Frame Control =

Article ID: 190031

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q190031



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
 Start a new Standard EXE project in Visual Basic. Form1 is created by default. Add a reference to the Microsoft Windowless Controls 6.0 by completing the following steps:

 From the Project menu, select Components to display the Components dialog box. In the Controls Tab, check "Microsoft Windowless Controls 6.0." Click OK to close the Components dialog box.</li></ol> </li> Add a WLFrame control to Form1. Select the WLFrame control.</li> Place a second lightweight control within the boundaries of the WLFrame control.</li> Move the WLFrame control. Note that the other lightweight control remains in the original position.</li></ol>

<div class="references_section">