Reply to thread

You may try something ~ like this: [youll need to use threads]


[code]

using System.Threading;

// add top

public delegate void CheckForUpdateCallback();

private Thread updateChecker;


// menu_click

updateChecker = new System.Threading.Thread(GetUpdate);

updateChecker.Start();


// add to end of GetUpdate

this.Invoke(new CheckForUpdateCallback(Finished), new object[] {  });


// create new method for "finished"

private void Finished()

{

MessageBox.Show("Finished - " + DateTime.Now.ToString());

}

[/code]



This should cause the entire operation to run Asnyc from the UI.


Back
Top