Drop target icon

  • Thread starter Thread starter peter
  • Start date Start date
P

peter

Is it possible to create a drop target on a client computer's desktop
so that if a user drags or drops a file jpeg on it will be used by the
target program?

IE. User drags a file to the icon and it zips the file.
Any sample code out there?
 
Hi Peter
I guess you mean dragging for outside your Application as from with in you
can use the on dragDrop events along with the AllowDragDrop property of the
control .
Here you are a sample application with source code that do dragging from
outside the application
http://www.codeproject.com/vb/net/vbnetdragdrop.asp
it does exactly the function that you want to do ( drop an image from
outside to the working area of your application , so hope it helps )
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Peter,

Couldn't you just create an EXE file that sits on the desktop with it's own
Icon? When someone drops a file on your Icon, your exe will be launched with
the filename; you can read this list using the
System.Environment.GetCommandLineArgs() method and the appropriately process
the file. Hope this helps!

Shariq Khan
(e-mail address removed)
 

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