DialogResult cvp;
cvp = MessageBox.Show("silmek istediğinize emin misiniz ? sildiğiniz ögeler geri getirilemeyecektir !", "Uyarı", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
try
{
if (cvp == DialogResult.Yes)
{
baglanti.Open();
komut.Connection = baglanti;
komut.CommandText = "delete from bilgiler where kullanici_adi=" + textBox6.Text + "";
komut.ExecuteNonQuery();
komut.Dispose();
uye_bilgiDataSet.Clear();
baglanti.Close();
yinele();
}
else
{
textBox6.Clear();
textBox6.Focus();
}
}
catch
{
MessageBox.Show("değer yanlış");
}