Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drag Drop Shortcuts

Status
Not open for further replies.

boflexson

Programmer
Oct 16, 2001
74
0
0
US
I'm recieving drap drop events in my application. Files work just fine using the following:
if(e.Data.GetDataPresent(DataFormats.FileDrop) )
{string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
}

But if I drag a shortcut, such as "My Documents", I can't get it to work. Any Ideas?



-Adam T. Courtney
 
Can you actually drag My Documents over it? What happens exactly? Does the (/) cross icon show up?

If you're actually receiving the string to the shortcut, you could determine if it is a shortcut and find its target.
 
I can get the drop to fire, but can't seem to get any data out of it.


-Adam T. Courtney
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top