Hi ppl![]()
Can anyone tell me how to delete every single item from inside a Panel?
Can't find a reset command or something similar.
Greetings
Zamith
Hi ppl![]()
Can anyone tell me how to delete every single item from inside a Panel?
Can't find a reset command or something similar.
Greetings
Zamith
Do you want to remove it or hide them, to hide them..
I'm not quite sure how you'd remove them, I tried 'item.dispose()' but this displayed the error "Object reference not set to an instance of an object"Code:For Each item As Control In myPanel.Controls item.Hide() Next
Last edited by Craig; 06-05-2006 at 1:42 PM.
Code:Panel1.Controls.Clear()
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly
Bookmarks