Click here to Skip to main content
Click here to Skip to main content

Look-up ComboBox

, 6 May 2005
Rate this:
Please Sign up or sign in to vote.
The article contains LookupComboBox control.


.NET Framework 1.1 has a wide variety of visual components available for Windows Forms applications. Anyhow there is no ComboBox component with the possibility of look-up data defined in the Items property (or bound DataSource) of ComboBox. This article describes a look-up ComboBox with the ability to find an appropriate item in ComboBox items.


The main good feature of the ComboBox is that the ComboBox has a property AllowTypeAllSymbols. If the property is true you can type any symbols in the ComboBox textbox. The items will be selected according to the first correctly entered symbol. For example, if the ComboBox holds "Item 1", "Item 2", "Test 1", "Test 2", "Combo", "Box" and if you enter "it", Item 1 will be selected. Again, if you enter "itm", "Item 1" will be selected. This way you can continue to enter any amount of symbols.

If AllTypeAllSymbols is false, you will be able to enter only those symbols, that are defined in the string of Items (or bound DateSource) property. For this example you will be able to enter only i, t, c, b as a first symbol. If you enter "i" as a first symbol - "Item 1" will be automatically selected, the second symbol can only be "t", you will not be able to enter any other symbol. "Item 2" will be selected only if you type the whole string "Item 2". The demo application shows this functionality.

Using the code

You can just add lookupcombobbox.dll to your project and use it for any Windows Forms application.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

dotNet Toys
Web Developer
Russian Federation Russian Federation
No Biography provided

Comments and Discussions

GeneralMy vote of 2 Pinmemberimamul.karim25-Nov-10 1:51 
GeneralComponent not Visible Pinmemberpcjd631-Dec-07 5:04 
GeneralAnother Bug PinmemberSebastian P.R. Gingter27-Jun-07 0:37 
GeneralNew Bug Pinmemberchris17512-Feb-07 6:58 
GeneralQuestion. Pinmemberlishe23-Nov-06 21:43 
GeneralRe: Question. Pinmembernickong8-May-07 23:52 
QuestionPossible Bug? Pinmemberbmcneill028-Jun-06 21:43 
GeneralAdditional bug found Pinmemberbriannacd7-Jun-05 5:40 
GeneralBug PinmemberJosef Meile2-May-05 1:10 
GeneralRe: Bug PinmemberJosef Meile2-May-05 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150301.1 | Last Updated 6 May 2005
Article Copyright 2005 by dotNet Toys
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid