0
Can you put breakpoint here and check error comes here?
for (int i = 0; i < fp.Length; i++)
{
comboBox1.Items.Add(fp[i]);
}
If error is coming , Check fp[0] exists. If it not exists,
then start with i=1 in for loop
0
sorry but it didnt solve my problem :( it still gives the same error
0
This is because there are no items inside combo box.
try this.
if (comboBox1.Items.Count>0 && comboBox1.SelectedIndex != -1)
comboBox1.Items.RemoveAt(comboBox1.SelectedIndex);