c# - How to clear everything in winforms Panel? -
i add treeview
panel
if click button, appends treeview
. how can clear in panel? tried panel1.controls.clear()
, panel1.controls.remove(treeview1)
. nothing happened.
try
mytreeviewbase.nodes.clear();
this method removes tree nodes collection.
Comments
Post a Comment