Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
ComboBox Class
ComboBox Methods
FindString Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:

Want more? Here are some additional resources on this topic:

.NET Framework Class Library
ComboBox.FindString Method

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

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.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
More info please!      greatwhitenorth   |   Edit   |   Show History
What happens if it does not find it! Null or -1 ?
Re: More info please!      ShipsPassing   |   Edit   |   Show History

If the combo is empty it returns 0.

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

Tags What's this?: Add a tag
Flag as ContentBug
Pay attention please!      kman0912   |   Edit   |   Show History
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 What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker