I want to keep a function running continuously in my Winform C# project, until the form window is closed -
i want keep function running continuously in winform c# project, until form window closed. don't want put in long timer , call again , again. shall do?
i need keep validating if form open or closed continuously:
while(this.close() == false) { my_func(); }
the above code wrong wrote give idea want.
remember there formclosing , formclosed events can utilize on form.
handling 1 of billion times more efficient continuously polling form's status...
Comments
Post a Comment