Jason

Jason

  • NA
  • 31
  • 0

Trying to use task.factory on a method

Sep 19 2011 9:55 AM
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)