crash in the handler that moves up a treenode in a treeview c#
- by voodoomsr
i have a event handler that moves the selected treenode up. I don't know why is crash in the line with comented.
treeviewdocxml is a treeview object, from System.Windows.Forms
treeViewDocXml.BeginUpdate();
TreeNode sourceNode = treeViewDocXml.SelectedNode;
if (sourceNode.Parent == null)
{
return;
…