I’m looking to develop a program which allows users to drag their desktop shortcuts onto a dock / slideout bar on the desktop. How can i make it possible for a ‘Desktop Shortcut’ to be dragged onto the Dock to create a Shortcut there?
I’m looking to develop a program which allows users to drag their desktop shortcuts
Share
Go into the properties editor for your drop target (component or form) and set
AllowDroptotrue. Then create event handlers for the DragEnter and DragDrop events:This will give you the file name that was dropped on your target. From there it’s up to you to parse the .LNK file.