find controls

  • Thread starter Thread starter neeme
  • Start date Start date
N

neeme

Hi:

I use vs.net 2003 cf create my APP!

I use C# !

I have a form in my App!

And have 10 Labels (Label0 to Label9)

Have 10 string is names[10];

I think to do

Label0.text = names[0];
Label1.text = names[1];
Label2.text = names[2];
...


This is trouble!

How can i

int i;
for(i=0;i<10;i++)
{
???? = names;
}

Thank you!
 

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

Similar Threads

Rotate Label Code 1
Variable in a label name? 18
hiding form 10
DataGrid and SqlCeResultset in CF v2 1
Do ALL labels at ONCE 14
Control.Invoke() 2
What's wrong with this drawing code? 3
Form freezing form 13

Back
Top