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
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
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
Private Sub lvwRemoteDir_DragOver(sender As Object, e As System.Windows.Forms.DragEventArgs) Handles lvwRemoteDir.DragOver
Dim obj() As String = e.Data.GetData(DataFormats.FileDrop)
Catch ex As Exception
' MessageBox.Show("Error Doing Drag/Drop")
Blue Wave Software
No Drop Cursor on Drag and Drop
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.
By Jim Pragit in forum .NET
Last Post: 08-10-2005, 08:16 AM
Last Post: 07-17-2002, 02:55 PM
Last Post: 04-04-2002, 05:48 AM
Last Post: 03-13-2002, 06:03 AM
By Todd Mitchell in forum VB Classic
Last Post: 04-09-2000, 01:48 AM
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