I developed two forms: Form1and Form2. Form1- the main form. In Form1there is a button, if I press the button, appears Form2. I want to do something on Form2.
private void button1_Click(object sender, EventArgs e)
{
Form form2= new Form();
form2.ShowDialog();
}
But Form2- this is a new form, not an existing form.
It is not right.
How? Thank.
user1108948
source
share