A
Atchoum
I have a combobox populated with objects from a class derived from FileInfo.
When I try to assign a value to selected index, I get a "Argument length
must be greater of equal to 0".
What is this about?
For i = 0 To cboCalc.Items.Count - 1
Dim Item As FileInfoExt
Item = cboCalc.Items(i)
If Item.TruncatedFileName = DefaultName Then
cboCalc.SelectedIndex = i
Exit For
End If
Next
TIA.
When I try to assign a value to selected index, I get a "Argument length
must be greater of equal to 0".
What is this about?
For i = 0 To cboCalc.Items.Count - 1
Dim Item As FileInfoExt
Item = cboCalc.Items(i)
If Item.TruncatedFileName = DefaultName Then
cboCalc.SelectedIndex = i
Exit For
End If
Next
TIA.