I think of a UC as a class with window properties.
It's a great way to encapsulate API functions for
another control or to use owner-drawn windows.
Owner drawn windows are a pain in VB because
they don't show up in the IDE. But if you associate an
owner-drawn window with a UC you can tie things
like Top, Left, Width, Height to the UC for easy
GUI management of the window and you can also
place the window on a form at "design time".
So you might say it's a blank slate with all the
conveniences of a VB component (visibility in
the IDE, hWnd, dimensions, etc.).
_____________________________
ma**********@mindYYspring.com
For return email remove XX and YY.
_____________________________
Maarten <gu******@hotmail.com> wrote in message
news:41**********************@news.skynet.be...
hi all
why should I use a usercontrol for ?
does it have some advantages?
thanks Maarten