Is Control.Invalidate() the same as Control.Refresh ?

  • Thread starter Thread starter active
  • Start date Start date
A

active

Refresh says:
-Forces the control to invalidate its client area and immediately redraw
itself and any child controls.
Not the Menu for example?

While Invalidate() says:
-Invalidates the entire surface of the control and causes the control to be
redrawn.

Does "the entire surface" mean more then the client area?
Including the menu?
Not the child controls?

-Calling the Invalidate method does not force a synchronous paint.
Does "causes the control to be redrawn" mean next time an Update occurs?

Is Refresh simply:
Invalidate()
Update()


Thanks
 
Refresh says:
-Forces the control to invalidate its client area and immediately redraw
itself and any child controls.
Not the Menu for example?

While Invalidate() says:
-Invalidates the entire surface of the control and causes the control to be
redrawn.

Does "the entire surface" mean more then the client area?
Including the menu?
Not the child controls?

-Calling the Invalidate method does not force a synchronous paint.
Does "causes the control to be redrawn" mean next time an Update occurs?

Is Refresh simply:
Invalidate()
Update()

Thanks

Here's an interesting read on the subject:

http://groups.google.com/group/micr...resh+invalidate&rnum=1&hl=en#21a57f5e02acd649

Thanks,

Seth Rowe
 
Back
Top