still on adding controls at run time mr admin, i want to write a code that will add textboxes(TBs) at run such that the user have to enter the number of textboxes needed in an already existing TB and when a button is clicked, TBs will be added to the form with respect to the value entered by the user. can this be possible? if yes help me with an idea THANKS.

Recommended Answers

All 2 Replies

Get the number of textboxes wanted, And loop through the count from 0 to count-1 or 1-count, Then me.textbox.add give the names to the textboxes.

I already answered how to do that here and you know that because you just posted there an hour before you posted here. Instead of asking us to give you the code, take some time to work with the example.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.