Trying to use task.factory on a method
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?