Cut, Copy Paste TreeNodes
-
Hello Coders; Updating a VB.Net 2003 to C#.Net 2008 I found that in a treeview they were using Send.Key ^C to cut, ^V to paste etc the nodes. I have tried to implement the same in C# 2008 and its not working so I have been scouring the net for an example of how to Cut, Copy and paste TreeNodes and haven't found any useful info. Can someone point me in the right direction? tia rafone
Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...
-
Hello Coders; Updating a VB.Net 2003 to C#.Net 2008 I found that in a treeview they were using Send.Key ^C to cut, ^V to paste etc the nodes. I have tried to implement the same in C# 2008 and its not working so I have been scouring the net for an example of how to Cut, Copy and paste TreeNodes and haven't found any useful info. Can someone point me in the right direction? tia rafone
Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...
Rafone wrote:
^C to cut, ^V
yep, that's VB for you. Instead of implementing a context menu they use sendkey - probably left over from a VB6 implementation. Use a context menu on the treeview Cut - copy node to a holding variable and delete from the tree Copy - sames as cut without the delete Paste - copy the node from the holding variable to the selectred node
Never underestimate the power of human stupidity RAH
-
Rafone wrote:
^C to cut, ^V
yep, that's VB for you. Instead of implementing a context menu they use sendkey - probably left over from a VB6 implementation. Use a context menu on the treeview Cut - copy node to a holding variable and delete from the tree Copy - sames as cut without the delete Paste - copy the node from the holding variable to the selectred node
Never underestimate the power of human stupidity RAH
they used send.key from a context menu. The original app was written in VB.Net using VS2003. In fact after upgrading the app to VS 2008 the cut copy paste of tree nodes works great, I just can't get these methods to work in C# VS2008. rafone
Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...