I made a windows form application .sln in VS. It has a Program.cs, and Form1.cs. It builds. There's a button in Form1.cs
private void button1_Click(object sender, EventArgs e) { MessageBox.Show("Hello");}
I have an array in Program.cs
static void Main() {
string[] john = {"tom", "susan"};
}
I want my button to access this array so it can
MessageBox.Show(john[0]);
I don't understand all the namespaces and fully qualified classes and all that. I just couldn't stick my array in Form1.cs anywhere without getting an error, it had to go back in Main. Thanks for any help.