Lightweight controls, sometimes referred to as windowless controls, differ
from regular controls in one significant way: They don't have a window
handle (hWnd property). Because of this, they use fewer system resources.
You create a lightweight user control by setting the Windowless property to
True at design time. Lightweight user controls can contain only other
lightweight controls.
that is all for now...Mike
-----Original Message-----
From: Jeffrey J Reddy [mailto:jeffr@l...]
Sent: Thursday, March 29, 2001 10:46 AM
To: professional vb
Subject: [pro_vb] RE: Light Weight Components
I am no expert, but I can tell you this. Many of the controls used by VB are
enhanced basic windows, while others are simply basic windows.
For an example. A label is a basic window, while a textbox is an enhanced
textbox. A command button is a basic window, while an option button is an
enhanced command button. I would guess the lightweight controls are the
controls that are basic Windows windows, while the heavy, or non-light
weight, controls are the enhanced windows. I know this is not worded to
well, but I hope you can get the gist of things from it.
----- Original Message -----
From: "Chris Tacke" <ctacke@r...>
To: "professional vb" <pro_vb@p...>
Sent: Thursday, March 29, 2001 10:21 AM
Subject: [pro_vb] RE: Light Weight Components
> Early binding objects are light weight??
>
> Early binding has nothing to do with it. Nor do the standard controls.
>
> A Textbox, which is a standard control, is not lightweight. A Label is.
>
> I can early bind to a treeview like this:
> <vbcode>
> Dim trvMyTree as TreeView
> </vbcode>
> It doesn't change the fact that it's NOT lightweight.
>
> As has been mentioned, in VB the difference is that a lightweight control
> has no hWnd (is windowless), but an example of a visible lightweight
control
> is, again, the Label.
>
> -----Original Message-----
> From: Desmond O'Toole [mailto:desmond_otoole@h...]
> Sent: Thursday, March 29, 2001 9:58 AM
> To: professional vb
> Subject: [pro_vb] RE: Light Weight Components
>
>
> Yes Heavy weight components. Those components that come with VB as
> standard (part of the run time library) are light weight. Basicaly early
> binding objects are light weight.
>
>
> >From: "Matt White" <gaffa@r...>
> >Reply-To: "professional vb" <pro_vb@p...>
> >To: "professional vb" <pro_vb@p...>
> >Subject: [pro_vb] RE: Light Weight Components
> >Date: Thu, 29 Mar 2001 15:43:28 +1000
> >
> >My understanding of lightweight components are that they are windowless
> >components ie: they are components that do not expose either the hWnd or
> >the
> >hDC property. When creating a usercontrol, there is a property called
> >"Windowless" that you set to true.
> > -----Original Message-----
> > From: Gopalakrishnan [mailto:ntg@s...]
> > Sent: Wednesday, 28 March 2001 2:15 PM
> > To: professional vb
> > Subject: [pro_vb] Light Weight Components
> >
> >
> > hi all,
> >
> > What are Light Weight Components? How do we do that in VB? Is there
> >something opposite to that?
> >
> > Thanks,
> >
> > N.T.GOPALAKRISHNAN
> >
> >
>
>
>
>