K
kurotsuke
Hi,
I need to clone a class (called NodeAbstract) that I derived from
TreeNode. I need to clone it to support drag and drop on the treeview.
I tried to use the MemberWiseClone (in my own Clone() method) method
but with no success. The cloned object seems to be correctly created
but I cannot add it to the treeview (I get no error message but simple
the new node isn't added).
If I use the standard TreeNode Clone method it works fine but of
course none of my specific fields are copied.
I tried to copy all the members directly from the original node to the
cloned object but how could I access the private members?
Thanks.
I need to clone a class (called NodeAbstract) that I derived from
TreeNode. I need to clone it to support drag and drop on the treeview.
I tried to use the MemberWiseClone (in my own Clone() method) method
but with no success. The cloned object seems to be correctly created
but I cannot add it to the treeview (I get no error message but simple
the new node isn't added).
If I use the standard TreeNode Clone method it works fine but of
course none of my specific fields are copied.
I tried to copy all the members directly from the original node to the
cloned object but how could I access the private members?
Thanks.