Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

prevent child control painting

0 views
Skip to first unread message

gerry

unread,
Oct 29, 2004, 1:21:44 PM10/29/04
to
using a custom control derived from a container control ie. Panel , can that
control somehow prevent its contained child controls from painting ?

can anyone point me to any documentation regarding how a form is painted -
ie. what methods/events execute on which controls and in what order and in
response to what.

thanks


gerry

unread,
Oct 30, 2004, 12:03:02 PM10/30/04
to
ok - since that garnered no response , let me rephrase the question.

I have a control whose painting will be handled by its parent control.
This control still needs to respond to system events such as Click.
The parent control is added to the form's Controls collection.
If i don't add the child control to the parent's Controls collection ,
painting is handled perfectly.
However the child control cannot receive any event notifications.
Adding the child control to the parent's Controls collection enables events
on the child control BUT the system now expects the child control to paint
itself which it doesn't ( and shouldn't ) which completely messes up the
display.

so back to the original question , is there any way for a control to not
have to paint itself without leaving a big hole in the display and yet still
be active and able to receive system event notifications ?

all comments welcome

gerry

"gerry" <ge...@hotmail.com> wrote in message
news:ujQg5vdv...@TK2MSFTNGP14.phx.gbl...

0 new messages