UserControl Drag to Windows Explorer


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: UserControl Drag to Windows Explorer

  1. #1
    Join Date
    Nov 2008
    Posts
    2

    Question UserControl Drag to Windows Explorer

    Created a UserControl on a Form in VB6. All in same project.
    I need to be able to drag from the usercontrol to windows explorer to do a file copy.
    I know how to do this with a ListView sitting on a form.
    Even though the UserControl_OLEStartDrag is available, it is not functional. i,e, it does not trigger when a leftmousedown+mousemnove occurs.
    I have seen that this a COM thing that prevents this, but there must be a way to do this.
    Can someone show me some sample code that works.
    I have already got code to raise an event within the usercontrol when a leftmousedown+mousemove occurs, but cannot get the parent form to initialize the dataobject.
    Maybe there is another way but I can't figure that out.
    Any help or suggestions would be appreciated.

  2. #2
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    I don't know if this is your problem or not; but it might help.
    Drag-and-Drop in UserControls

  3. #3
    Join Date
    Nov 2008
    Posts
    2

    DragStart not DragDrop

    I have no problem with DragDrop.

    I cannot get DragStart etc to work.
    I want to drag from the USerControl to something outside the application.

    THis is do-able from a ListView or other control sitting on a form using OLEDragStart etc. but this will not function from a UserControl.

    Anybody else have suggestions?

Similar Threads

  1. Using windows explorer in my C# form
    By Fred in forum .NET
    Replies: 1
    Last Post: 02-12-2003, 11:46 PM
  2. Replies: 0
    Last Post: 10-28-2002, 12:57 PM
  3. Simplest way to refresh Windows Explorer
    By MGZ in forum VB Classic
    Replies: 0
    Last Post: 10-03-2001, 12:38 AM
  4. Replies: 0
    Last Post: 01-24-2001, 12:20 PM
  5. Replies: 0
    Last Post: 01-24-2001, 12:20 PM

Tags for this Thread

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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