|
-
Mar 15th, 2000, 10:00 PM
#1
Thread Starter
Junior Member
How do I lock and unlock ListView such that I can control when the user can edit the ListView?
-
Mar 15th, 2000, 10:55 PM
#2
New Member
Just disable it when you don't want them to have control.
ListView1.Enabled = False 'disable it
ListView1.Enabled = True 'enable it
-
Mar 16th, 2000, 01:06 AM
#3
Thread Starter
Junior Member
the .enable had to be true, all the time, as I want the user to be able to sort the listview by column_header anytime (except when editing).
if .enable = false, then user could never sort by the column_header but they cannot edit the data.
if .enable = true, then user could sort by the column_header but they can edit the data too.
no other way??
-
Mar 16th, 2000, 05:44 AM
#4
Addicted Member
Probably the simplest way is to intercept the keystrokes in the keypress and/or keyup events of the list control and set keyascii to zero.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|