Question : Clear the Runtime-Created Controls from a Panel vb.net

How do I clear the a variety of controls I created inside of a Panel?

In side the panel, I load (at runtime) a series of text boxes, lables, radio buttons and checkboxes, when the user clicks on a ListView item.  if the user clicks on a different listview item, I need the contents of the panel cleared out - deleted, so that I can redraw the new controls that pertain to that listview item.

Hope this makes sense!

Thanks for your help!

Answer : Clear the Runtime-Created Controls from a Panel vb.net

Why not just?

    Panel1.Controls.Clear()

Done!
Random Solutions  
 
programming4us programming4us