D
Dzemo
i try to implement simple threading im my application and i get this error
message :
An unhandled exception of type 'System.InvalidOperationException' occurred
in system.windows.forms.dll
Additional information: 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.
on this line on one of two threads that i have in my application:
tree.Nodes.Add(Nodex)
TreeView is declared on form not on current thread. Why, any ideas? Any
examples any ideas Any help anything
THX
message :
An unhandled exception of type 'System.InvalidOperationException' occurred
in system.windows.forms.dll
Additional information: 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.
on this line on one of two threads that i have in my application:
tree.Nodes.Add(Nodex)
TreeView is declared on form not on current thread. Why, any ideas? Any
examples any ideas Any help anything
THX