السلام عليكم ورحمة الله وبركاته
عندي سؤال يا اخوان في الفورم اللي في الصورة

أبغى إذا اختار المستخدم الملف يظهر لي ال combo box ارقام الملفات
حاولت بهذا الكود ولم ينجح
private void Search_Load(object sender, EventArgs e)
{
timer1.Start();
if (radioButton1.Checked)
{
con.Open();
OleDbCommand cmd = new OleDbCommand("Select * from Table1", con);
OleDbDataReader read = cmd.ExecuteReader();
while (read.Read())
{
comboBox1.Items.Add(read["الملف"]);
}
con.Close();
}
else if (radioButton2.Checked)
{
con.Open();
OleDbCommand cmd = new OleDbCommand("Select * from Table1", con);
OleDbDataReader read = cmd.ExecuteReader();
while (read.Read())
{
comboBox1.Items.Add(read["الاسم"]);
}
con.Close();
}
else if (radioButton3.Checked)
{
con.Open();
OleDbCommand cmd = new OleDbCommand("Select * from Table1", con);
OleDbDataReader read = cmd.ExecuteReader();
while (read.Read())
{
comboBox1.Items.Add(read["الجوال"]);
}
con.Close();
}
}والسلام عليكم