Click here to Skip to main content
13,794,050 members
Click here to Skip to main content
Add your own
alternative version


43 bookmarked
Posted 17 Dec 2002

An extended ListBox control

, 17 Dec 2002
Rate this:
Please Sign up or sign in to vote.
A control that offers extensible entry specification and full keyboard support.

Sample Image - ListBoxEx.jpg


This control is a .NET version of the extended ListBox editor that originally showed up in Visual Studio. The control offers an extensible interface for specifying ordered entries of data items in string format. The control uses a button at the end of each line in the list, to allow the user a custom interface for specifying the text for that entry.

In addition to the GUI, the control offers full keyboard support for specifying entries in the list.

INSERTCreates a new item at the end of the list
DELETEDeletes the currently selected item
CTRL+UP ARROWMoves the selected item up in the list
CTRL+DOWN ARROWMoves the selected item down in the list
ENTERCalls to the IBrowser interface to allow the user to specify a value

The namespace defines an interface IBrowser that allows a programmer to extensibly specify how to obtain the value for the selected entry. With this interface, a programmer could specify any type of interface for configuration data. As long as the data can be represented as a string, the configuration data can be ordered by this control.

public interface IBrowser
    string Value

The control comes with a simple IBrowser implementation called OpenFileBrowser. This implementation simply creates the OpenFileDialog object and allows the user to specify a particular file. The genesis for the control was to have a base control to use, for specifying lists of IP Address specifications/ranges.


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

Web Developer
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionCan I use your project in my project? Pin
weiqj27-Jul-06 9:10
memberweiqj27-Jul-06 9:10 
AnswerRe: Can I use your project in my project? Pin
HankiDesign6-Jul-07 8:56
memberHankiDesign6-Jul-07 8:56 
NewsAdvanced list box and combo box Pin
brett5630-Nov-05 6:56
memberbrett5630-Nov-05 6:56 
General... but it does not inherit from ListBox Pin
Peter Smartt25-Nov-03 13:27
memberPeter Smartt25-Nov-03 13:27 
GeneralRe: ... but it does not inherit from ListBox Pin
Maciek Plewa10-Mar-04 5:42
sussMaciek Plewa10-Mar-04 5:42 

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

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

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web05 | 2.8.181207.3 | Last Updated 18 Dec 2002
Article Copyright 2002 by ClearlyDotNet
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid