Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Right new, I want to make a application about drop and drag icons.

The major function is same as the "WINZIP" or "Recycle Bin".

I can move and add one or more items icon to my application icon and then link to other actions, such as copying or deleting the selected items.




Can anyone give me some similar example or information.

Thanks.
Posted
Updated 12-Sep-13 17:14pm
v2

1 solution

This is a default behavior in windows. It will simply start your program with the first parameter of the command line being the path to the file that was dragged on top of the icon.

See this article[^] about parsing command line parameters. Once you have the file name (or names if multiple files were dragged on), then you can do whatever you want with it.
 
Share this answer
 
Comments
Eytukan 13-Sep-13 8:21am    
That is a cool info. Never had a requirement to drag & drop stuff @ an icon.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900