private void button1_Click(object sender, EventArgs e) { SqlCommand getir = new SqlCommand("select Kullanici_id from Kullanici_Tablo where Kullanici_Ad = @ad and Kullanici_sifre = @sifre", baglanti); getir.Parameters.AddWithValue("@ad", textBox1.Text); getir.Parameters.AddWithValue("@sifre", textBox2.Text); baglanti.Open(); int id = Convert.ToInt32(getir.ExecuteScalar()); // getir.executuscalarle id alınır ve int degere cevrilir if (id != 0) { sozluk a = new sozluk(); this.Hide(); a.ShowDialog(); } else { MessageBox.Show("Yalnış Kullanıcı adı veya Şifre"); } }
private void sözlükToolStripMenuItem_Click(object sender, EventArgs e) { sozluk a = new sozluk(); this.Hide(); a.ShowDialog(); }
private void türkçeİngilizceToolStripMenuItem1_Click(object sender, EventArgs e) { sozluk a = new sozluk(); this.Hide(); a.ShowDialog(); }
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { sozluk a = new sozluk(); this.Hide(); a.ShowDialog(); }