5
Answers

Trying to use task.factory on a method

Ask a question
Jason

Jason

13y
2.1k
1
I'm trying to keep the main UI from locking up while I do a DB lookup in the background.  I'm assuming this can be done with threading.  I tried this Task.Factory.StartNew(()=>Method(string,string,string) but I get a message about crossthreading because the method is getting the value of a combo box.  How do I avoid this?

Answers (5)
Next Recommended Forum