Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
how can i display drag effect like windows
while dragging from windows folder it's like:
<img src="http://im54.gulfup.com/beBcLA.png" />
but when drag to my app it's like:
<img src="http://im54.gulfup.com/2Loa8B.png" />
Posted
Comments
BillWoodruff 7-Nov-14 12:28pm    
Is the image you wish to show while dragging a fixed image (never changes) ? Or, does the image need to be customized for each drag operation ?
Rabee Rabee 10-Nov-14 9:53am    
thanx
i want to display the file icon like windows when drag a file from desktop it displays same file icon, how can i do that when drag from desktop to my app?

1 solution

That is not as simple as it looks. You may refer this[^] for an example.

Basically you must draw your own icon and using drag and drop events move it with the mouse. Try the example provided and if you've got problems ask again.
 
Share this answer
 

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