removing from panel

  • Thread starter Thread starter sonic
  • Start date Start date
S

sonic

How to remove all elements from component "Panel"?
There is no RemoveAll etc and
for (int i = 0 ; i < this->panel1->Controls->Count; i++)
{
this->panel1->Controls->RemoveAt(i);
}
dont wanna work:/
Thanks!
 
Hi sonic,

Just panel1.Controls.Clear();

Kind Regards, Alex Meleta
[TechBlog] http://devkids.blogspot.com



s> How to remove all elements from component "Panel"?
s> There is no RemoveAll etc and
s> for (int i = 0 ; i < this->panel1->Controls->Count; i++)
s> {
s> this->panel1->Controls->RemoveAt(i);
s> }
s> dont wanna work:/
s> Thanks!
 
Back
Top