Hi ,
Check this
You can store the values in load then when you need it you can get it back
Hope it help .
List<string> lst = new List<string>();
private void Form1_Load(object sender, EventArgs e)
{
foreach (Control ctrl in this.Controls)
{
if (ctrl is TextBox)
{
lst.Add(((TextBox)ctrl).Text);
}
}
}
private void button1_Click(object sender, EventArgs e)
{
int i = 0;
foreach (Control ctrl in this.Controls)
{
if (ctrl is TextBox)
{
((TextBox)ctrl).Text = lst[i];
i++;
}
}
}
Best Regards
M.Mitwalli