Hello. I would like to ask the following question.
I am using Visual C++ express and building a windows form application. There is a button (actually a checkbox in the appearance of a button) among other things in my Form.
What I want to do is for some function to be called repeatedly whenever the checkbox is ON. and to stop whenever I mark it OFF.
I tried putting an endless loop(while checked==true) inside the CheckedChange function of the checkbox but predictably it locked the application and couldnt call it off.
So I am thinking to put a Timer that will call the function as long as the timer is active.
Does any of you have any other idea of how to realize this? Any advice will be greatly appreciated
Kansai