Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }