as the title says I try to get an info from an array in foreach. This is for Microsoft form application! What I try so far is :
private void tabPage1_Click(object sender, EventArgs e)
{
string[] names = new string[] { "Matt", "Joanne", "Robert" };
foreach (string element in names)
{
label3.Text = (string)element[1];
}
}
What am I doing wrong?