Check If Bool Variable = True Before Allowing Form Close

  • Thread starter Thread starter IndigoMontoya
  • Start date Start date
I

IndigoMontoya

Guest
This is C# winforms.


I am running a behind the scenes event that is completely hidden to the user, and when it completes I set bool allDone = true;

I am needing a way that when the user clicks the X to close the forecheck if allDone = true; if it does not, then display a message to the user that "Still processing", and have the form auto-check this value every 30 seconds on it's own w/o the user having to click the X again.


How would I Do this?

Continue reading...
 
Back
Top