Hi guys,
I'm using VB.NET.
I have a simple application. Just a form, and a ListView.
I have a procedure in the form, it read's all the files in my specificed local drive, and show the files name, size and created day. It works perfectly.
Now, I want add a drag and drop functionality in this application. For example, when I drag a file from my desktop, and drop it in the list box, it will do the following:
- Add the file's name, size and date into the listview
- Copy the file to my another specificed path
My problem is simple, I don't know how to do it!
Can anyone give me a sample code and let me figure it out, or give me some hints, advice or anything can help.
Thanks in advance
Andy
I'm using VB.NET.
I have a simple application. Just a form, and a ListView.
I have a procedure in the form, it read's all the files in my specificed local drive, and show the files name, size and created day. It works perfectly.
Now, I want add a drag and drop functionality in this application. For example, when I drag a file from my desktop, and drop it in the list box, it will do the following:
- Add the file's name, size and date into the listview
- Copy the file to my another specificed path
My problem is simple, I don't know how to do it!
Can anyone give me a sample code and let me figure it out, or give me some hints, advice or anything can help.
Thanks in advance
Andy