Check SuspendLayout
- by norlando02
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.