using System.Collections.Generic;
using System.ComponentModel;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace kullanici_giris
public partial class Form1 : Form
private void button1_Click(object sender, EventArgs e)
string ad = textBox1.Text;
string sifre = textBox2.Text;
con = new OleDbConnection("Provider=Microsoft.ACE.Oledb.12.0;Data Source=giris.accdb");
cmd = new OleDbCommand();
cmd.CommandText = "SELECT * FROM kullanici where k_ad='" + textBox1.Text + "' AND k_sifre='" + textBox2.Text + "'";
dr = cmd.ExecuteReader();
MessageBox.Show("Kullanıcı adı ya da şifre yanlış");