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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -