private void logBtn_Click(object sender, EventArgs e) { firstPanel f1 = new firstPanel(); this.Visible = false; checkAdmin = 0; f1.ShowDialog(); }
public Form2(firstPanel form1) { _form1 = form1; }