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

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
 
R

rowe_newsgroups

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
 

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