private void treeview1_MouseMove(object sender, MouseEventArgs e) { TreeNode theNode = browserControl1.trvObjects.GetNodeAt(e.X, e.Y); string testtext=theNode.Tag.ToString(); //Here it is thrwing an exception as Object reference not set to an instance of an object. //use new key word to create new object }
theNode
null
theNode.Tag
if else
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)