Windows Develop Bookmark and Share   
 index > Windows Forms General > How to Edit items in ListBox
 

How to Edit items in ListBox

Hi,

I need to edit the item in the ListBox (if u can , Explain with sample code). If its not possible to edit thelist box then giveme the alternative solution for me.

Thanks in Advance.

Mohanavel  Thursday, January 31, 2008 3:30 PM

Here is some sample code for an Editable ListBox

http://www.csharphelp.com/archives2/archive337.html

Hope this helps

Gaetan Siry  Thursday, January 31, 2008 4:09 PM

For a non-databound list box you can just manipulate the data in the items collection directly.

listbox.Items[index] = <your Value here>;

Sabrecat  Thursday, January 31, 2008 3:48 PM

Here is some sample code for an Editable ListBox

http://www.csharphelp.com/archives2/archive337.html

Hope this helps

Gaetan Siry  Thursday, January 31, 2008 4:09 PM

You can use google to search for other answers

Custom Search

More Threads

• Multiline TextBox focus problem
• Form size problem (mdi)
• printpreviewcontrol and printpreviewDialog
• usercontrol
• Losing events in MDI forms (1.0 vs 1.1 framework difference)
• access list in another class error
• IExtender => ToolTip
• Can I disable a TextBox without changing its appearance
• (National Instruments) Range Constructor
• How to find out the ActiveHTML Element in an IFRAME?