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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top