Scroll To Top
Reader Level:
Article
Windows Controls

Editable ListBox in C#

By Gautam Shrestha 0 on Jun 09, 2005
The attached sample code demonstrates how you can create an editable ListBox control, which will let you edit ListBox items at runtime.

Suppose you need to edit an item in a list box (it is read-only list of item) at a runtime. This sample code demonstrate a simple approach to create an editable listbox.

ListBox.gif

To edit an item in a list box, all you need is one hidden text box. Keep textbox hidden of set property visible as false and show it whenever you required.