I have two simple functions - one checks the status of a server and returns true or false, the other sends an email based
on data passed to it. I need to free up the GUI while these functions operate and would like to operate them on separate threads so that the continuous progressbar runs and the users can continue.
Please could someone give me an example of how to run a function like that on a separate thread, how to pass data to it and receive a result from it. I've seen many examples on the web of the backgroundworker, but none that operate it as a function. Many thanks