E
eff_kay
I am trying to add a node in System.Windows.Forms.TreeView
in another thread... I am doing this...
--
TreeNode temp = new TreeNode("Work Station " + (i + 1))
MainForm.TreeView.SelectedNode.Nodes.Add(temp);
--
But I get this exception...
--
The action being performed on this control is being called
from the wrong thread. You must marshal to the correct
thread using Control.Invoke or Control.BeginInvoke to
perform this action.
--
I have no idea how to work now... PLZ help...
Thanks
eff_kay
in another thread... I am doing this...
--
TreeNode temp = new TreeNode("Work Station " + (i + 1))
MainForm.TreeView.SelectedNode.Nodes.Add(temp);
--
But I get this exception...
--
The action being performed on this control is being called
from the wrong thread. You must marshal to the correct
thread using Control.Invoke or Control.BeginInvoke to
perform this action.
--
I have no idea how to work now... PLZ help...
Thanks
eff_kay