SamSpade,
Control.Refresh - does a Control.Invalid ate immediately followed by
Control.Update.
Control.Invalid ate - invalidates a specific region of the Control (defaults
to entire client area) and causes a paint message to be sent to the control.
Control.Update - causes the Paint event to occur immediately (Windows will
normally wait until there are no other messages for the window to process,
before raising the Paint event).
Refresh can be overridden, have you overridden it to change its behavior?
The paint event of course is where all the drawing of your PictureBox
occurs. Note there is only one pending Paint event, if you call Invalidate 3
times, you will still only receive one Paint event.
Hope this helps
Jay
" SamSpade" <st************ **@REMOVEaol.co m> wrote in message
news:O$******** ******@TK2MSFTN GP11.phx.gbl...
picDocument is a picturebox
When I do picDocument.Inv alidate() the box paints.
But if instead I do picDocument.Ref resh() the box does not paint.
What does Refresh do. I guessed it did an Invalidate and an Update.
Can someone shed some light?
Thanks