P
Peter Wagner
Hi
There are 2 different .NET Programs A und B.
I'll drag a TreeNode from a TreeView in A into a ListView in B.
In B I'll extract values from the dropped TreeNode.
Unfortunately I don't know how to extract the values. :-(
Code in B
--------------
private void ListView_DragDrop(object sender,
System.Windows.Forms.DragEventArgs e)
{
:
:
:
if( e.Data.GetDataPresent( "Blabla.Node" ) ) // Blabla.Node is a
TreeNode derived Class
{
TreeNode DraggedNode =(TreeNode) e.Data.GetData( "Blabla.Node" );
// Up to above line works the drop. Debugging this code, DraggedNode
// contains the value
'System.Runtime.Remoting.Proxies.__TransparentProxy'
// I don't no how I should work with Proxies. :-(
// How can I extract the values in DraggedNode?
:
:
}
}
TIA
p
There are 2 different .NET Programs A und B.
I'll drag a TreeNode from a TreeView in A into a ListView in B.
In B I'll extract values from the dropped TreeNode.
Unfortunately I don't know how to extract the values. :-(
Code in B
--------------
private void ListView_DragDrop(object sender,
System.Windows.Forms.DragEventArgs e)
{
:
:
:
if( e.Data.GetDataPresent( "Blabla.Node" ) ) // Blabla.Node is a
TreeNode derived Class
{
TreeNode DraggedNode =(TreeNode) e.Data.GetData( "Blabla.Node" );
// Up to above line works the drop. Debugging this code, DraggedNode
// contains the value
'System.Runtime.Remoting.Proxies.__TransparentProxy'
// I don't no how I should work with Proxies. :-(
// How can I extract the values in DraggedNode?
:
:
}
}
TIA
p