DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2003

    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

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    What version of .NET are you using?

    Post the drag and drop code that isn't working for you.

  3. #3
    Join Date
    Nov 2003
    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

    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

  4. #4
    Join Date
    Jul 2012

    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.


Similar Threads

  1. Problem with Drag and Drop
    By Jim Pragit in forum .NET
    Replies: 5
    Last Post: 08-10-2005, 07:16 AM
  2. Drag & Drop in VB.NET
    By laurent in forum .NET
    Replies: 1
    Last Post: 07-17-2002, 01:55 PM
  3. Replies: 0
    Last Post: 04-04-2002, 04:48 AM
  4. Drag and Drop Problem
    By Xin Li in forum .NET
    Replies: 0
    Last Post: 03-13-2002, 05:03 AM
  5. Extend Constituent Control Drag Events
    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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center