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

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -