By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,836 Members | 1,704 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,836 IT Pros & Developers. It's quick & easy.


P: n/a

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 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
any help will be greatly appreciated,

thanks in advance!

Jan 6 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.