Article ID: 184687 - View products that this article applies to.
This article was previously published under Q184687
This article has been archived. It is offered "as is" and will no longer be updated.
This article contains information about the lightweight, or windowless, controls that ship with Visual Basic version 6.0. This article also describes lightweight controls, explains their advantages and disadvantages, and illustrates how to install lightweight controls in your Visual Basic project.
Lightweight controls, sometimes referred to as windowless controls, are similar to the regular controls shipped in Visual Basic except that they do not have a window handle. Because lightweight controls do not have a window handle, these controls use less system resources. Lightweight controls are ideal for projects where system resources might be a limiting factor, such as Internet applications and distributed applications.
Lightweight controls with a Transparent BackStyle property are truly transparent. A regular control might appear to be transparent under the same conditions. However, the control is still processing Windows messages in that transparent background area. When a lightweight control has a transparent background, the container holding the lightweight control actually processes the Windows messages instead of the lightweight control. Because lightweight controls are truly transparent, these controls can be any shape.
There are some disadvantages to lightweight controls. Lightweight control containers can only contain other lightweight controls. If you put a regular control in a lightweight control container, the container will revert to a regular window control container. Regular controls always appear on top of a lightweight control because the lightweight control uses the resources of the parent window.
When you run Visual Basic, the following controls in your Toolbox are lightweight controls:
How To Register the Windowless Component File
How To Copy the Windowless Component Files
How To Add a Windowless Control To Your Project
"Creating Lightweight Controls", Visual Basic Product Documentation
For additional information about lightweight controls, please see the following article in the Microsoft Knowledge Base:
184645For additional installation instructions, please see the following articles in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/184645/EN-US/ )HOWTO: Create Lightweight Controls with Visual Basic 6.0
189950For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/189950/EN-US/ )HOWTO: Install the Microsoft Windowless Controls for VB6
(http://support.microsoft.com/kb/259564/EN-US/ )INFO: Windowless Controls in the Mswless.ocx File Are Not Supported
Contact us for more help
Connect with Answer Desk for expert help.