Yes, thats one way of doing it
something like:
static void Thread(object state)
{
MyForm param = (MyForm)state;
string file = string.Empty;
param.Invoke(new MethodInvoker(delegate
{
string strUri = comboBoxWeb.Text.Trim();
}));
}
don't use BeginInvoke since you need a synchronous operation