-
Strange VB.Net Drag and Drop Problem
I am having a strange problem with my application the drag and drop works for fine for draging objects from one listview control to the other, but If I drag a file from the desktop it doesn't work in the listview control the DragDrop and the DragEnter Events won't even trigger.
All I get is a drop Not Allowed cursor.
I do have AllowDrop set to True.
I have used the same code for a sample app, to test if the drag and drop will work there and it works fine there, it just won't for my app.
Do you have any Ideals
Thanks,
QWERT
Blue Wave Software
-
What version of .NET are you using?
Post the drag and drop code that isn't working for you.
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
-
Version 2010
Private Sub lvwRemoteDir_DragEnter(sender As Object, e As System.Windows.Forms.DragEventArgs) Handles lvwRemoteDir.DragEnter
If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
e.Effect = DragDropEffects.Copy
End If
End Sub
Private Sub lvwRemoteDir_DragOver(sender As Object, e As System.Windows.Forms.DragEventArgs) Handles lvwRemoteDir.DragOver
Try
Dim obj() As String = e.Data.GetData(DataFormats.FileDrop)
Catch ex As Exception
' MessageBox.Show("Error Doing Drag/Drop")
End Try
End Sub
Blue Wave Software
-
No Drop Cursor on Drag and Drop
QWERT,
Did you solve this problem? I have exactly the same thing on a simple drag and drop, but yet have other VB.Net programs running the same VS 2010 on the same PC that works fine. I have Googled "No Drop Cursor" and "No Entry Cursor", but your post is the only one I have found that has experienced the same issue. If you have solved it I would appreciate you sharing the solution.
Thanks
Similar Threads
-
By Jim Pragit in forum .NET
Replies: 5
Last Post: 08-10-2005, 07:16 AM
-
Replies: 1
Last Post: 07-17-2002, 01:55 PM
-
Replies: 0
Last Post: 04-04-2002, 04:48 AM
-
Replies: 0
Last Post: 03-13-2002, 05:03 AM
-
By Todd Mitchell in forum VB Classic
Replies: 3
Last Post: 04-09-2000, 12:48 AM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks