J
John Underwood
Hi. In the following code i'm able to find all Label controls in the
controls
class, I'm looking for a cleaner way to look for control types (not a
specifice control).. I played around with the getType() but was not
able to figure out a way to do a test against a Label control.. Thanks
for any help..
John
for (int x=0;x<this.Controls.Count;x++)
{
if(this.Controls[x].GetType().Name.ToString().ToUpper() == "LABEL")
{
<snip>
}
}
controls
class, I'm looking for a cleaner way to look for control types (not a
specifice control).. I played around with the getType() but was not
able to figure out a way to do a test against a Label control.. Thanks
for any help..
John
for (int x=0;x<this.Controls.Count;x++)
{
if(this.Controls[x].GetType().Name.ToString().ToUpper() == "LABEL")
{
<snip>
}
}