Hello,
I have a Sub "addNodes()" that adds multiple level nodes from existing
datasets and want to run it in separate thread so that it would't slow down
my form loading. When I try to do this, the following error appears:
"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."
I'm newbie in threading so have no idea on how to use Control.Invoke or
Control.BeginInvoke,
any help will be greatly appreciated,
thanks in advance!
Adriano