private void LoadLayout(Layout result) { TreeView view = dtLayout; view.SuspendLayout(); view.Nodes.Clear();---------------------------->here the exception occur TreeNode root = new TreeNode("root",result.Label,result.ImageKey) { Tag = result }; view.Nodes.Add(root); AddTreeNodes(result.Children,root); root.Expand(); view.SelectedNode = SelectNode(view.Nodes[0]); view.ResumeLayout(); }
view
view.Nodes
null
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)