programmer1024
Member
- Joined
- Jun 18, 2006
- Messages
- 23
- Programming Experience
- 3-5
Hello,
I have read tons of MSDN documentation, but I do not fully understand the process of creating drag and drop.
Since there is no shortcut class in .NET, I have to use the COM library.
I need to develop a process where I can drag an existing desktop shortcut onto a treeview and the data/properties such as filename, target, etc from the shortcut is transferred and created as a new node in the treeview.
I finally got to being able to drag and drop text from a .NET textbox to create a node in a treeview with that text.
I need to be able to drag desktop shortcuts onto the treeview, convert the shortcut's properties to variables and then create new node on the treeview.
I envision the psuedocode something like this:
1. drag shortcut over treeview
2. variables grab target, and fullpath properties from the shortcut during the dragdrop
3. create a new node using the values of the variables
4. add the new node to the treeview
The COM reference for the shortcut library is Windows Script Host Object Model
And its Imports statement is:
Imports IWshRuntimeLibrary
I need to know how to do the shortcut's mousedown (to begin the drag) and once it is dropped on the treeview, I need to grab its target and fullname property values.
Please help me!
I have read tons of MSDN documentation, but I do not fully understand the process of creating drag and drop.
Since there is no shortcut class in .NET, I have to use the COM library.
I need to develop a process where I can drag an existing desktop shortcut onto a treeview and the data/properties such as filename, target, etc from the shortcut is transferred and created as a new node in the treeview.
I finally got to being able to drag and drop text from a .NET textbox to create a node in a treeview with that text.
I need to be able to drag desktop shortcuts onto the treeview, convert the shortcut's properties to variables and then create new node on the treeview.
I envision the psuedocode something like this:
1. drag shortcut over treeview
2. variables grab target, and fullpath properties from the shortcut during the dragdrop
3. create a new node using the values of the variables
4. add the new node to the treeview
The COM reference for the shortcut library is Windows Script Host Object Model
And its Imports statement is:
Imports IWshRuntimeLibrary
I need to know how to do the shortcut's mousedown (to begin the drag) and once it is dropped on the treeview, I need to grab its target and fullname property values.
Please help me!