A
apple
Hello, help me please with combobox FindString,
I want to perform a search for an second substring entry in the combobox
items collection. I use the FindString with specifying a starting index
within the ComboBox. I have tried the following but none seem to work:
cmbBox.FindString(strWhat, cmbBox.FindString(strWhat)) - don't work
For example:
if Items count is 1 - I have only one item in the items collection,
cmbBox.FindString(strWhat) return 0 - this only one item starts with strWhat
With FindString(strWhat, 0) i receive ArgumentOutOfRangeException error...
Why, if error condition is: "The startIndex is greater than the last index
in the collection."????
How I can do this?
I want to perform a search for an second substring entry in the combobox
items collection. I use the FindString with specifying a starting index
within the ComboBox. I have tried the following but none seem to work:
cmbBox.FindString(strWhat, cmbBox.FindString(strWhat)) - don't work
For example:
if Items count is 1 - I have only one item in the items collection,
cmbBox.FindString(strWhat) return 0 - this only one item starts with strWhat
With FindString(strWhat, 0) i receive ArgumentOutOfRangeException error...
Why, if error condition is: "The startIndex is greater than the last index
in the collection."????
How I can do this?