예제 #1
0
        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            Home_form home = new Home_form();

            home.Show();
            this.Hide();
        }
예제 #2
0
        private void btn_login_Click(object sender, EventArgs e)
        {
            string user = user_txt.Text;
            string password = pass_txt.Text;

            ToolTip toolTip1 = new ToolTip();
            toolTip1.ShowAlways = true;
            toolTip1.SetToolTip(btn_login, "Press to Login.");

            if (user.Equals("user1") & password.Equals("pass1"))
            {
                 lbl_message.Text = "Welcome to the system ";
                 Home_form Home = new Home_form();
                 Home.Show();
                 this.Dispose();
            }
            else
            {
                lbl_message.Text = "invalid username and password combination ";
            }
        }
예제 #3
0
        private void btn_login_Click(object sender, EventArgs e)
        {
            string user     = user_txt.Text;
            string password = pass_txt.Text;

            ToolTip toolTip1 = new ToolTip();

            toolTip1.ShowAlways = true;
            toolTip1.SetToolTip(btn_login, "Press to Login.");

            if (user.Equals("user1") & password.Equals("pass1"))
            {
                lbl_message.Text = "Welcome to the system ";
                Home_form Home = new Home_form();
                Home.Show();
                this.Dispose();
            }
            else
            {
                lbl_message.Text = "invalid username and password combination ";
            }
        }
예제 #4
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     Home_form home= new Home_form();
     home.Show();
     this.Hide();
 }