ListView.LabelEdit

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If you set ListView.LabelEdit = True, then the user can edit the selected label's text. But, the user must wait a few seconds after the label is selected until the text can be edited. Is there any way to make it so that the text can be edited as soon as the item is selected

I have a situation where the user will probably want to rename a number of items that are displayed in a ListView. Ideally, I would like to have it so that the user can either tab or use the arrow keys to select the desired item, immediately type a new name for the item, and then repeat this process until all of the items have been renamed

Thanks for any help
Lance
 
Hello,

look it in listview property not f4 property window , right click on
list view and select property then check item change or other
properties.

try this

Thanks,

Warm Regards,

Ayaz Ahmed
Software Engineer & Web Developer
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Karachi, Pakistan
Mobile +92 300 2280950
Office +92 21 455 2414
 
Hi Lance,

First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to enter the edit mode
of the lable of a listview item as soon as you use arrow key or tab key to
select a item.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

I think you may try to handle the SelectedIndexChanged event and call the
BeginEdit method of the selected item.
Private Sub ListView1_SelectedIndexChanged(ByVal sender As Object,
ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged
If ListView1.SelectedItems.Count > 0 Then
ListView1.SelectedItems(0).BeginEdit()
End If
End Sub

Please apply my suggestion above and let me know if it helps resolve your
problem.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top