control with changing name?

B

Beatrix

Hi,

My idea is that I want to draw more textboxes runtime, with a "for".

Like
for (i=0; i< sg;i++)
{
TextBox something+i = new TextBox; //meaning something1
}
when i is always added to the previous, and gives multiple textboxes.

I need this because I have to draw multiple textboxes, and check the answers.
Now I start to understand, if I dont assign the name for all textboxes I
will not be able to return their values. Then is there a better option?

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

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top