.NET Framework Class Library
ComboBox.FindString Method

Finds the first item in the ComboBox that starts with the specified string.

Overload List

Name Description
ComboBox.FindString (String) Finds the first item in the combo box that starts with the specified string.
ComboBox.FindString (String, Int32) Finds the first item after the given index which starts with the given string. The search is not case sensitive.
See Also

Tags :


Community Content

greatwhitenorth
More info please!
What happens if it does not find it! Null or -1 ?

ShipsPassing
Re: More info please!

If the combo is empty it returns 0.

If the string can't be found it returns -1

Tags :

kman0912
Pay attention please!
There are two implementations of this method. If you click on the specific method you intend to use you will be provided with addtional information about the method including the return type and potential values.
Tags :

Page view tracker