Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

[VB6.0/SP5] How can i prevend the user edit the row data of listview?

Hi,
    I set the property LabelEdit 'lvwManual'. But after i click the row of listview twice, i can edit the first col data of the row. How can i stop the edit action.  i can't set the property Enable 'False', for i'd like the use edit the listview by the popup menu. when the use right click the listview, a menu popup.
   
    Regargs,

     -- lr
0
LuRen
Asked:
LuRen
1 Solution
 
DocMCommented:

Set Cancel to True in this event:
Private Sub ListView1_BeforeLabelEdit(Cancel As Integer)
 Cancel = True
End Sub
0
 
LuRenAuthor Commented:
DocM
   Thank you. It is just the answer.

  -- lr
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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