Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 284
  • Last Modified:

ListView.StartLabelEdit doesn't work

I cannot get the StartLabelEdit method to work on the ListView control.  It works fine for the TreeView control.  I used the sample code in Help and changed the TreeView to a ListView (and made related changes as necessary for adding items) and the StartLabelMethod does nothing.  I have set the LabelEdit property to Automatic and to manual, and also tried a .SetFocus before the .StartLabelEdit.

What do I have to do or change to get this method to work on a ListView control?
0
wizmo
Asked:
wizmo
1 Solution
 
polygonCommented:
'Here is my own example which works:
'To try it just put a ListView Control and the following code on a 'event
Dim Litem As ListItem
ListView1.View = lvwReport
ListView1.ColumnHeaders.Add , , "Column 1", ListView1.Width
Set Litem = ListView1.ListItems.Add (, , "Item 1")
ListView1.SetFocus
ListView1.StartLabelEdit
'-------------------------------------

If you still cannot find your problem give your code as a comment to your question and I'll try to help you.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now