private void button2_Click(object sender, EventArgs e) { MenuUye menuUye = new MenuUye(); menuUye.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { metin = textBox1.Text; DbCon dbcon = new DbCon(); con = dbcon.connection(); com = new OracleCommand(); com.Connection = con; com.CommandText = "SELECT * FROM Uyeler WHERE UyeTc ='" + textBox1.Text + "' AND UyeSifre='" + textBox2.Text + "'"; dr = com.ExecuteReader(); if (dr.Read()) { MenuUye menuUye = new MenuUye(); menuUye.Show(); this.Hide(); } else { MessageBox.Show("Kullanıcı Adı ve ya Şifre Hatalı"); } con.Close(); }