Basically I have List of TextBoxes
and I have added all the TextBoxes
I want to focus through.
On Form1_Load
I'm populating this Arrows
List with TextBoxes
which are included in another Lists EURTextBox
, EurChange
and so on ...
So I'm trying to focus through these TextBoxes
like they are in 2x6 matrix similar to excel. Can you suggest me function or helpful link
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
List<TextBox> Arrows = new List<TextBox>();
}
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i < 2; i++)
{
Arrows.Add(EURTextBox[i]);
Arrows.Add(EURchange[i]);
Arrows.Add(Cvetno1TextBox[i]);
Arrows.Add(Cvetno1change[i]);
Arrows.Add(Cvetno2TextBox[i]);
Arrows.Add(Cvetno2change[i]);
}
}