PRB: Control Does Not Remain in Lightweight Frame Control (190031)



The information in this article applies to:

  • Microsoft Visual Basic Learning Edition for Windows 6.0
  • Microsoft Visual Basic Professional Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0

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

  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:

    1. From the Project menu, select Components to display the Components dialog box.
    2. In the Controls Tab, check "Microsoft Windowless Controls 6.0."
    3. 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:

189950 HOWTO: Install the Microsoft Windowless Controls for VB6

184687 INFO: Lightweight Controls in Visual Basic 6.0


Modification Type:MajorLast Reviewed:5/13/2003
Keywords:kbprb KB190031