Windows Develop Bookmark and Share   
 index > Windows Forms General > c#.NET Listbox
 

c#.NET Listbox

I have a listviewbox and I need it to do this. I need it to let the user click on the comment and then put the comment in a textbox to edit the text. The comment is in the listviewbox. The columns that are in the listviewbox is the date,comment, UserName. can u help

spennington  Tuesday, October 25, 2005 7:10 PM
You can only make the item labels editable.  If you want to make the sub-items editable, it's not a one step process.  Here's a link that does that with MFC - http://www.codeguru.com/Cpp/controls/listview/editingitemsandsubitem/article.php/c4175/.  You'd have to subclass your ListView - override the WndProc and translate all the code (in that article) to .Net. 
Vijaye Raji  Wednesday, October 26, 2005 9:27 AM
alternatively, you can catch the ItemActivate event and show a new Form where the user can edit all Subitems of currently selected ListViewItem.
Konstantin Gonikman  Thursday, October 27, 2005 5:24 PM
You can only make the item labels editable.  If you want to make the sub-items editable, it's not a one step process.  Here's a link that does that with MFC - http://www.codeguru.com/Cpp/controls/listview/editingitemsandsubitem/article.php/c4175/.  You'd have to subclass your ListView - override the WndProc and translate all the code (in that article) to .Net. 
Vijaye Raji  Wednesday, October 26, 2005 9:27 AM
alternatively, you can catch the ItemActivate event and show a new Form where the user can edit all Subitems of currently selected ListViewItem.
Konstantin Gonikman  Thursday, October 27, 2005 5:24 PM

You can use google to search for other answers

Custom Search

More Threads

• How to get perfect drawing ?
• Automatic printing web reports
• NotifyIcon ShowBalloonTip renders balloon tip in 2 different styles in Vista
• Simple formatting with CR.Net... where do I get started?
• HelpProvider
• Change name on files???
• Form won't click - is this another change from VB4?
• Hyperlinks
• right mouse click on treeview
• Can't see any tables in the Server Explorer