Assasin adlı üyeden alıntı: mesajı görüntüle
Error    1    A local variable named 'e' cannot be declared in this scope because it would give a different meaning to 'e', which is already used in a 'parent or current' scope to denote something else

"Exception e" burda hata var diyo
 
 
try
{
int bul;
bul = int.Parse(textBox1.Text);
OleDbCommand ara = new OleDbCommand("Select * from tablo1 where num = " + bul + "", baglanti);
OleDbDataReader oku = null;
baglanti.Open();
oku = ara.ExecuteReader();
if (!oku.HasRows)
{
while (oku.Read())
{
ListViewItem kayit = new ListViewItem(oku["num"].ToString());
label4.Text = oku["num"].ToString();
label5.Text = oku["sinif"].ToString();
textBox4.Text = oku["y1"].ToString();
textBox5.Text = oku["y2"].ToString();
textBox6.Text = oku["s1"].ToString();
textBox7.Text = oku["ort"].ToString();
label2.Text = oku["ad"].ToString();
label3.Text = oku["soy"].ToString();
double ort = Convert.ToDouble(oku["ort"]);
if (ort > 45)
textBox8.Text = "Geçti";
else if (ort < 45)
textBox8.Text = "Kaldı";
}
}
else {
MessageBox.Show("Böyle bir öğrenci yok!");
}
oku.Close();
baglanti.Close();
}
catch{

MessageBox.Show("Hata Oluştu");

}