private void button2_Click(object sender, EventArgs e) { ADMINCEO d = new ADMINCEO(label6.Text); d.Show(); Visible = false; }
private void button2_Click_1(object sender, EventArgs e) { if (label3.Text == "ADMIN") { ADMINCEO d = new ADMINCEO(label3.Text); d.Show(); Visible = false; } else { MessageBox.Show(" ID ของคุณไม่สามารถเข้าได้"); } }