Beispiel #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            Form14 F14 = new Form14();

            F14.Show();
            this.Hide();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            F2.sqlConnection1.Open();
            SqlDataAdapter SDA = new SqlDataAdapter("SELECT COUNT(*) FROM dbo.SIGNUP WHERE NAME='" + textBox1.Text + "' AND PASSWORD='******'", F2.sqlConnection1);
            DataTable      DT  = new DataTable();

            SDA.Fill(DT);
            if (DT.Rows[0][0].ToString() == "1")
            {
                MessageBox.Show("LOGIN SUCCESSFULL" + Environment.NewLine + "YOUR ID:" + textBox1.Text + Environment.NewLine + "YOUR PASSWORD:"******"INVALID PASSWORD OR USER ID");
                textBox1.BackColor = Color.Red;
                textBox2.BackColor = Color.Red;
                textBox1.ForeColor = Color.White;
                textBox2.ForeColor = Color.White;
            }

            F2.sqlConnection1.Close();
        }