prevent child control painting

G

gerry

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
 
G

gerry

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top