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