Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start Editing of ListView Control

Status
Not open for further replies.

xterra

Programmer
Apr 5, 2001
71
US
Hi,

I want to the user to be able to click once on a listitem and it be ready to edit. I am using this API call:

MsgBox SendMessage(lvGroups.hWnd, LVM_EDITLABEL, lvgroups.selecteditem.index, 0)

it returns 0 everytime and won't do anything. Any Ideas what I'm doing wrong?

Thanks,

Adam
 
You can simply call the StartLabelEdit method of the listview control which does the same.

[tt]lvGroups.StartLabelEdit[/tt]
 
No that allows them to edit labels but it doesn't actually set the control into edit mode. You still have to click one more time to start editing. I need them to click on it once and it start editing.

Thanks though,

Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top