#257882 - 08/06/200510:26Re: Contents of variables to modify controls (C#)
[Re: JeffS]
JeffS carpal tunnel
Registered: 14/01/2002
Posts: 2858
Loc: Atlanta, GA
I should add that if you don't want to follow a strict naming convention like "textbox1, textbox2, . . ." then you could always use the "Tag" properly instead and just compare against it.
Code:
if (control.Tag.ToString() == controNumber.ToString())
_________________________
-Jeff Rome did not create a great empire by having meetings; they did it by killing all those who opposed them.