File moving drop box.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Had an idea and wondered if it is possible at all.
Dim Idea1 as New Idea
Idea.show()
("I would like to have a spot on a Form, a box of some sort, that if you
were to drag a file or folder on to the spot.... it would move that file to a
pre-specified folder. I would like to specify the folder in my code so that
the user could not change the dir. Example: The program opens and it creates
a folder on the desktop called 'Program Name,' then they drag an image from
internet explorer onto the drop box in Form1. The image is then sent to the
folder on the desktop.")
End Sub

Thanks for any input, and putting up with my stupid scripting in the post.
--
<XML>
<BEGIN:: DCSE-TRAINING>
<END:: DCSE-TRAINING>
<BEGIN:: GOOD-CAREER>
<BEGIN:: GOOD-CAREER>
<I SAID BEGIN:: GOOD-CAREER>
<BEGIN:: METHOD:: GIVE-UP>
</XML>
 
Yes, what you want to do is easy

Just add a picturebox to the form, & set it to allow drag

You will need to use the FileIOPermissions for the movement of the file to
be on the safe side & look in the System.IO namespace for the File.Move...

If you put your file move function on mouse up of the picture box for
example it would be easy to do

A very simple objective to achieve

----------------------------------

Two other things:

1) Learn pseudo code
2) Remove the XML footer please

Crouchie1998
BA (HONS) MCP MCSE
 
Thanks, that does seem fairly simple. I was trying to make it much more
complicated. And, i was thinking about removing that footer already...it was
getting on MY nerves.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top