How can I setup a timer to call a method if it expires before receiving a return value?
myTimer.Interval = 100000;
bool status = methodReturningValue();
myTimer.Start();
if (status == true && myTimer.expired == false)
// Do Something
else
// So Something Else
this is just something I typed up to give you an idea of what I would like to accomplish, I hope it makes sense.
I guess I could try something like:
Timer myTimer = new Timer();
myTimer.Interval = 100000;
myTimer.Enabled;
myTimer.Start();
myTimer.Tick += new EventHandler(Method(args));
but that just seems sloppy, there has to be a better way...