Exemple #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            OleDbDataReader rd;

            baglan.Open();
            komut.Connection  = baglan;
            komut.CommandText = ("Select ID,KullanıcıAdı,Şifre From GİRİŞ Where KullanıcıAdı='" + textBox2.Text + "' and Şifre='" + textBox3.Text + "'");
            rd = komut.ExecuteReader();
            if (rd.Read() == true)
            {
                Form7 frm7 = new Form7();
                frm7.yedinciform = Convert.ToInt32(rd[0]);
                frm7.Show();
            }
            baglan.Close();
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string        st  = "data source=puneeth;initial catalog=sai;integrated security=true";
            SqlConnection con = new SqlConnection(st);

            con.Open();
            string        str = "select * from log123 where login='******'and password='******'";
            SqlCommand    cmd = new SqlCommand(str, con);
            SqlDataReader dr  = cmd.ExecuteReader();

            if (dr.HasRows)
            {
                dr.Read();
                int   a  = Convert.ToInt32(dr.GetValue(3));
                Form7 f7 = new Form7(a);
                this.Hide();
                f7.ShowDialog();
            }
            else
            {
                MessageBox.Show("invalid user");
                con.Close();
            }
        }
Exemple #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form s = new Form7();

            s.Show();
        }
Exemple #4
0
        private void button7_Click(object sender, EventArgs e)
        {
            Form7 f = new Form7();

            f.ShowDialog();
        }
        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Form7 frm = new Form7();

            frm.Show();
        }