Beispiel #1
0
        private void Button2_Click(object sender, System.EventArgs e)
        {
            Form Form = new FrmStaff();

            Form.Show();
            this.Hide();
        }
Beispiel #2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            adapter = new MySqlDataAdapter("SELECT `Id`, `Paswrd` FROM `logtbl` WHERE `Id` = '" + username.Text + "' AND `Paswrd` = '" + password.Text + "'", connection);
            adapter.Fill(table);

            if (table.Rows.Count <= 0)
            {
                label1.Text = "Username Or Password Are Invalid";
            }
            else
            {
                Form Frm = new FrmStaff();
                Frm.Show();
                this.Visible = false;
            }
            table.Clear();
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form Frm = new FrmStaff();

            Frm.Show();
        }