System.Threading.Thread thread = new System.Threading.Thread(delegate()
{
if (SearchaEntryHistoryWithImageID())
{
string fileName = searchResult.Save(parentID);
webBrowserMain.Url = new Uri(fileName);
}
});
thread.Start();
--------------------------------------------
this.BeginInvoke((MethodInvoker)(() => setStateAtEnd() ) );