all groups > vb.net controls > august 2005 >
You're in the

vb.net controls

group:

Invalidate vs. Refresh vs. Update vs. Suspend/Resume Layout


Invalidate vs. Refresh vs. Update vs. Suspend/Resume Layout Dino Buljubasic
8/30/2005 12:00:00 AM
vb.net controls: What is the difference between these properties?

thank you
Re: Invalidate vs. Refresh vs. Update vs. Suspend/Resume Layout Dino Buljubasic
8/30/2005 5:57:10 PM
Mona,

I did read these explanations at MSDN. I am asking because I don't
understand the difference and because I dont see where should I use
one over another.

Thanks anyways,
_dino_


On Tue, 30 Aug 2005 23:10:12 +0530, "Mona" <mona@discussions.com>
[quoted text, click to view]
Re: Invalidate vs. Refresh vs. Update vs. Suspend/Resume Layout Mona
8/30/2005 11:10:12 PM
Hello dino,
How are you doing?

You would find the expalanation as well as MSDN links for more information
regarding the keywords:

Invalidate:
Invalidates a specific region of the control and causes a paint message to
be sent to the control.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassinvalidatetopic.asp

Refresh:
Forces the control to invalidate its client area and immediately redraw
itself and any child controls.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassrefreshtopic.asp

Update:
Causes the control to redraw the invalidated regions within its client area.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassupdatetopic.asp

Suspend Layout:
Temporarily suspends the layout logic for the control.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclasssuspendlayouttopic.asp

Resume Layout:
Resumes normal layout logic.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassresumelayouttopic.asp

I hope this helps:

Thanks
Mona
[Grapecity]

[quoted text, click to view]

Re: Invalidate vs. Refresh vs. Update vs. Suspend/Resume Layout Ken Tucker [MVP]
8/31/2005 6:49:04 AM
Hi,

Refresh causes the control and its children to redraw right now

Invalidate sends the paint message to the control. You can specify what part
or all of the control to redraw.

Update causes the invalidated section of the control to redraw

Suspendlayout causes the control to stop painting itself until you call
resumelayout. It is useful when you are making alot of changes and want all
of them to show up at once.

Ken
-------------------
[quoted text, click to view]

Re: Invalidate vs. Refresh vs. Update vs. Suspend/Resume Layout Dino Buljubasic
9/1/2005 9:21:11 PM
Thanks Ken

_dino_

On Wed, 31 Aug 2005 06:49:04 -0400, "Ken Tucker [MVP]"
[quoted text, click to view]
AddThis Social Bookmark Button