i have created text box dynamically. i am able to retrieve text value from text box.how to store this value in array?? is it possible?
foreach (Control c in panel1.Controls)
if (c is TextBox)
TextBox txt = (TextBox)c;
string msg = txt.Text;
Just define an array in the appropriate scope and add the text from the textbox to it. ie.
I would highly suggest not using and Array, but rather a List.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)