Editable ListBox in C#

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.