Button click
-
Hi to everyone. I 've a ref class. In a method of the class i want to stop a while loop when a button is clicked. How can i write this condition? thanks in advance for answers, regards.
The while loop needs to take place in a thread, then you can set a variable in your click event, which the loop checks every time through, and stops itself when it's set appropriately
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
The while loop needs to take place in a thread, then you can set a variable in your click event, which the loop checks every time through, and stops itself when it's set appropriately
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )