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.
    • Like
    • Love It
    • Awesome
    • Interesting
    • It's Okay
    • Thumbs Down
  • 83.6k
  • 0

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.