Exemplo n.º 1
0
        private void btn_add_new_book_Click(object sender, EventArgs e)
        {
            frm_Add_New_Book fanb = new frm_Add_New_Book();

            fanb.Show();

            this.Hide();
        }
Exemplo n.º 2
0
        private void btn_Submit_Click(object sender, EventArgs e)
        {
            if (txt_username.Text == "yogesh" && txt_Password.Text == "y123")
            {
                MessageBox.Show("Login Successfull !!!!");

                frm_Add_New_Book obj = new frm_Add_New_Book();
                obj.Show();

                this.Hide();
            }
            else
            {
                lbl_Note.Text      = "Please enter valid details.";
                lbl_Note.ForeColor = Color.Red;
            }
            txt_username.Text = "";
            txt_Password.Text = "";

            txt_username.Focus();
        }