public virtual void TreeViewClear(TreeView Object) { if (this.InvokeRequired) { TreeViewClearDelegate dele = new TreeViewClearDelegate(TreeViewClear2); this.Invoke(dele, new object[] { Object }); } else { TreeViewClear2(Object); } }