Name of control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can I access the name of a Control ?

Ex:

for (int i = 0; i <= Form.Controls.Count - 1; i++)
if (Form.Controls.NAME == "Name") <== it's possible ?
do anything

Rogerio
 
Rogerio,

Do you really need the name of the control? You could probably just compare
Form.Controls for equality with the control you're looking for, not the
name of that control.
 
Back
Top