I was wondering if there is a way to do that in .NET
there is a SuspendLayout function, but seems like it doesnt really lock the control? does it? :confused:
Printable View
I was wondering if there is a way to do that in .NET
there is a SuspendLayout function, but seems like it doesnt really lock the control? does it? :confused:
No, It does not really suspend the drwaing of control.
It 'Temporarily suspends the layout logic for the control. The SuspendLayout and ResumeLayout methods are used in tandem to suppress multiple Layout events while you adjust multiple attributes of the control. For example, you would typically call the SuspendLayout method, then set the Size, Location, Anchor, or Dock properties of the control, and then call the ResumeLayout method to allow the changes to take effect.'
aha thanks, makes more sense now:)
I ended up using lockwindowupdate btw