lockwindowupdate

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

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

tia,

steve
 
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
 

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

Back
Top