private void button1_Click(object sender, EventArgs e) { txt_userName.Text = ""; txt_password.Text = ""; txt_ID.Text = ""; //Opening Workers Form frmWorkercs frmWorkercs = new frmWorkercs(); //Hides this form this.Hide(); //Opens Workers Form frmWorkercs.ShowDialog(); //Opens THIS form when Workers closes this.Show(); }
private void loginSuccess() { txt_userName.Text = ""; txt_password.Text = ""; txt_ID.Text = ""; //Opening Workers Form frmWorkercs frmWorkercs = new frmWorkercs(); //Hides this form this.Hide(); //Opens Workers Form frmWorkercs.ShowDialog(); //Opens THIS form when Workers closes this.Show(); }