Serialcoder en Français Serialcoder in English
TEL : +33 (0)9 72 13 15 17

Windows Forms FAQ resources

2. Windows Forms Controls

2.23 How do I create an editable listbox with an in-place TextBox and Button?


The attached EditableList UserControl implements an editable listbox with an in-place TextBox and Button allowing users to directly edit the contents of the list box.

When the user clicks on a selected item, a textbox and a button is shown over the selected item and the user can directly edit the selectected item text. The button can be programmed to show for example a OpenFileDialog to allow user to select a file (useful while implementing a Files list).