ugh error

this is the code that causes the error:

DestinationNode.Nodes.Add((TreeNode)(OriginationNode.Clone));

and this is the error: (it underlines 'TreeNode')

'System.Windows.Forms.TreeNode' is a 'type' but is used like a 'variable'

could someone please help me with this





Answer this question

ugh error

  • Jim Duffy

    Should Clone be with ()

    Clone()



  • Music

    haha, i cant believe that worked! thanks a lot!

  • ugh error