G
Guest
Hi,
I'm trying to dynamically remove labels from a windows form in csharp. I
have a foreach loop similar to :
foreach(Control c in this.Controls)
{
c.Dispose();
}
The code does not find any labels but works fine for othet controls. I'm
clearing the entire form (excluding menus) so there may be a better way to do
this. I do not know the name(s) of the lables as they are created dynamically.
Thanks in advance, O
I'm trying to dynamically remove labels from a windows form in csharp. I
have a foreach loop similar to :
foreach(Control c in this.Controls)
{
c.Dispose();
}
The code does not find any labels but works fine for othet controls. I'm
clearing the entire form (excluding menus) so there may be a better way to do
this. I do not know the name(s) of the lables as they are created dynamically.
Thanks in advance, O