By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,949 Members | 2,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,949 IT Pros & Developers. It's quick & easy.

Drop target icon

P: n/a
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?

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

Nov 21 '05 #2

P: n/a
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
sh****@shariqkhan.com
<pe***@mclinn.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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?

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.