Skip to main content
Email Password   helpLost your password?

Introduction

.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.

Features

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.

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralComponent not Visible Pin
pcjd63
5:04 1 Dec '07  
GeneralAnother Bug Pin
Sebastian P.R. Gingter
0:37 27 Jun '07  
GeneralNew Bug Pin
chris175
6:58 12 Feb '07  
GeneralQuestion. Pin
lishe
21:43 23 Nov '06  
GeneralRe: Question. Pin
nickong
23:52 8 May '07  
GeneralPossible Bug? Pin
bmcneill0
21:43 28 Jun '06  
GeneralAdditional bug found Pin
briannacd
5:40 7 Jun '05  
GeneralBug Pin
Josef Meile
1:10 2 May '05  
GeneralRe: Bug Pin
Josef Meile
3:28 2 May '05  
GeneralRe: Bug Pin
dotNet Toys
23:18 4 May '05  


Last Updated 6 May 2005 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009