lockwindowupdate

  • Thread starter Thread starter steve
  • Start date Start date
what's the .net equivalent to the lockwindowupdate api in kernel32?

tia,

steve

Some controls, like the ListBox, implement a .BeginUpdate and .EndUpdate
method that basically is equivalent... So, it depends on the control.

Tom Shelton
 
well...i want to suspend a form from any paint activities while i'm running
some code that will affect the ui, then release the form to paint as needed.
i've been scouring the form and graphics docs but haven't found what i need
yet. just looking for an assist.

thanks for you help tom.

steve
 
steve said:
what's the .net equivalent to the lockwindowupdate api in kernel32?

tia,

steve

Have you looked at using the ResumeLayout function ? I beleive it has an
overload that will do exactly what you want.

VC
 
steve said:
ahhhh-haaaa! viola!

form.suspendlayout()
form.resumelayout()

;^)

Are you sure this works? I thought it suspends/resumes the
docking/anchoring/movement of controls.
 
these, and other events, are what create the "flicker" effect on the
screen...instead of performing layout actions when an interface is massaged,
it allows for single or multiple actions to be performed and only show their
visual results when the resumelayout method is called. this is exactly what
i needed.

here's more info on the interface...i believe it lists more - not all -
events affecting the layout of an object:

http://msdn.microsoft.com/library/d...systemwindowsformscontrolclasslayouttopic.asp

hth,

steve
 
Back
Top