By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

Dynamically created forms and textbox

P: 3
Hai there,
i have dynamically created windows from and added a dynamic textbox and button in it, user will enter some value in that textbox and clicks the button the form will be closed on the button click, now how to store the value entered in the dynamically created textbox on a dynamically created form,
any help on this is greatly appreciated, thanks in advance
Aug 8 '12 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 5K+
P: 9,731
When you dynamically generate the TextBoxes for the Form, you can add them to a private List(Of TextBox) member.

This way you can loop through the list and retrieve what the user entered to store the data in the database when the user clicks the button.

Or you can forgo the list idea and, in the button click event, you could loop through the Form's Controls Property to retrieve all of the dynamically generated TextBoxes to do your processing.

Aug 8 '12 #2

P: 3
Dear Frinny,

Thank you very much for your response i tried with adding up in a list(of textbox), it works like charm


i have one more problem, i have coded a program where it shoots mails using MS outlook working fine, but when a user who does'nt have MS outlook but has a windows live, it is not working. can u help me with some idea how to make it generic,
note that in our office lan we also use outlook express,

Thanks in advance
Aug 11 '12 #3

Expert Mod 5K+
P: 9,731
Check out this article:]A quick reference on how to send email using .net[/url]

Please keep your thread to one question: post new questions in a new thread.

Aug 13 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.