Home All Groups Group Topic Archive Search About

User Control Re-Painting

Author
14 Oct 2005 7:59 PM
Bryan Dickerson
I have a user control in an MDI Child form that doesn't always repaint
itself thoroughly if another form is displayed over it--most of the other
forms are also MDI Child forms.  I have put code to refresh itself
everywhere I can think of, but I can't seem to make this one portion of the
control repaint itself.  Any ideas?

--
TFWBWY...A

Author
14 Oct 2005 11:37 PM
MikeD
"Bryan Dickerson" <txprp***@netscape.net> wrote in message
news:OasYTnP0FHA.2212@TK2MSFTNGP15.phx.gbl...
>I have a user control in an MDI Child form that doesn't always repaint
>itself thoroughly if another form is displayed over it--most of the other
>forms are also MDI Child forms.  I have put code to refresh itself
>everywhere I can think of, but I can't seem to make this one portion of the
>control repaint itself.  Any ideas?

Well, you really weren't too forthcoming with information, but just as a
guess, try setting the AutoRedraw property to True.

It also sounds like *maybe* you've got too much code trying to
repaint/refresh and all that code is working against each other. If you can,
post code to demonstrate the problem. That's ALWAYS the best way to get
help.

--
Mike
Microsoft MVP Visual Basic