I'd like to loop through my controls and make an IF
conditional, but instead using this:
foreach(Control c in this.Controls)
{
if(c is TextBox) {}
}
I'd like to do something like:
if(!c is TextBox){}
you know ? I'd like to get into the loop only if the control C
is DIFFERENT
of a TextBox. Of course the method I tried !
does not work with Controls
. How may I deny that ?