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