|
-
Jan 9th, 2000, 03:45 PM
#1
Thread Starter
New Member
I need to disable drag and drop feature in my list view control. Can somebody help me please?
Thanks in advance!
-
Jan 9th, 2000, 11:04 PM
#2
Member
try setting dragmode property to vbmanual
------------------
To err is human, but to apologize frequently is embarassing.
-
Jan 10th, 2000, 04:03 PM
#3
Thread Starter
New Member
I have set the property to vbManual, but am still not able to prevent the drag. I have tried to cancel the drag with
listview1.drag vbCancel
in the mouseDown, up and move events, still no luck!!!
-
Aug 25th, 2000, 01:46 PM
#4
New Member
You can do it in the listview's mousedown event:
Private Sub ListView1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
Set ListView1.SelectedItem = ListView1.HitTest(x, y)
ListView1.Drag vbBeginDrag
ListView1.Drag vbEndDrag
End Sub
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
|