FindString Method
MSDN Home
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
Class Library Reference
System.Windows.Forms
ComboBox Class
ComboBox Methods
FindString Method
FindString Method (String)
FindString Method (String, Int ...
ComboBox Methods
AddItemsCore Method
BeginUpdate Method
CreateAccessibilityInstance Me ...
CreateHandle Method
Dispose Method
EndUpdate Method
FindString Method
FindStringExact Method
GetItemHeight Method
IsInputKey Method
OnBackColorChanged Method
OnDataSourceChanged Method
OnDisplayMemberChanged Method
OnDrawItem Method
OnDropDown Method
OnDropDownClosed Method
OnDropDownStyleChanged Method
OnFontChanged Method
OnForeColorChanged Method
OnGotFocus Method
OnHandleCreated Method
OnHandleDestroyed Method
OnKeyDown Method
OnKeyPress Method
OnLostFocus Method
OnMeasureItem Method
OnMouseEnter Method
OnMouseLeave Method
OnParentBackColorChanged Metho ...
OnResize Method
OnSelectedIndexChanged Method
OnSelectedItemChanged Method
OnSelectedValueChanged Method
OnSelectionChangeCommitted Met ...
OnTextChanged Method
OnTextUpdate Method
OnValidating Method
ProcessKeyEventArgs Method
RefreshItem Method
RefreshItems Method
ResetText Method
ScaleControl Method
Select Method
SelectAll Method
SetBoundsCore Method
SetItemCore Method
SetItemsCore Method
ToString Method
WndProc Method
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.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
Reference
ComboBox Class
ComboBox Members
System.Windows.Forms Namespace
Tags :
Community Content
greatwhitenorth
More info please!
What happens if it does not find it! Null or -1 ?
Tags :
contentsuggestion
confusing
insufficient
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 :