Check SuspendLayout
Posted
by norlando02
on Stack Overflow
See other posts from Stack Overflow
or by norlando02
Published on 2009-04-22T14:24:14Z
Indexed on
2010/03/24
16:43 UTC
Read the original article
Hit count: 357
Is there a way in C# to check if an object is suspend? I have a TreeView that I need to know if it is still suspend.
myTreeView.BeginUpdate();
myTreeView.SuspendLayout();
// Do Stuff.
myTreeView.EndUpdate();
myTreeView.ResumeLayout();
Because i have this code in a recursive function I want to know if the TreeView is already been suspended.
© Stack Overflow or respective owner