Reader Level:
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
  • 84.1k
  • 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.


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.