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.

treenodecollection.clear method


Comments

Popular posts from this blog

c# - how to use buttonedit in devexpress gridcontrol -

how to display 2 form fields on same line with bootstrap -

How do you convert a timestamp into a datetime in python with the correct timezone? -