locked
Drag-N-Drop in VB? RRS feed

  • Question

  • Im working on a video editor in VB 2010. How do i make it so that the user can drag-and-drop a file from a listbox and into a panel, for lets say, the video? Any help is greatly appreciated. Also if you would like to help me work on the video editor just tell me.
    Monday, September 10, 2012 9:25 PM

Answers

  • There is an example and disucssion here:
    http://msdn.microsoft.com/en-us/library/aa289508(v=vs.71).aspx

    Your case will probably use the example of dragging text between two controls, becasue you are probably dealing with a filename, not a file. But note that you will have carefully specify what you mean by 'into a panel' as a panel does not support all the properties that are available in a listbox.

    • Marked as answer by Mark Liu-lxf Wednesday, September 19, 2012 5:27 AM
    Monday, September 10, 2012 10:07 PM
  • Hi Evy0311,

    this video link helps you a lot...

    http://www.youtube.com/watch?v=aFoCGv9ID1A

    but for deeply knowledge you have to follow Acamar Sir example,

    thanks.


    arif_mustafa@live.com Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.

    • Proposed as answer by ArifMustafa Wednesday, September 12, 2012 5:38 PM
    • Marked as answer by Mark Liu-lxf Wednesday, September 19, 2012 5:27 AM
    Wednesday, September 12, 2012 5:37 PM

All replies

  • There is an example and disucssion here:
    http://msdn.microsoft.com/en-us/library/aa289508(v=vs.71).aspx

    Your case will probably use the example of dragging text between two controls, becasue you are probably dealing with a filename, not a file. But note that you will have carefully specify what you mean by 'into a panel' as a panel does not support all the properties that are available in a listbox.

    • Marked as answer by Mark Liu-lxf Wednesday, September 19, 2012 5:27 AM
    Monday, September 10, 2012 10:07 PM
  • Hi Evy0311,

    this video link helps you a lot...

    http://www.youtube.com/watch?v=aFoCGv9ID1A

    but for deeply knowledge you have to follow Acamar Sir example,

    thanks.


    arif_mustafa@live.com Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.

    • Proposed as answer by ArifMustafa Wednesday, September 12, 2012 5:38 PM
    • Marked as answer by Mark Liu-lxf Wednesday, September 19, 2012 5:27 AM
    Wednesday, September 12, 2012 5:37 PM