M
M
mIka012021-07-15 20:53:51
C++ / C#
mIka01, 2021-07-15 20:53:51

Breaking a loop when a button is clicked?

Hello, I am writing applications at the request of my teacher.
First, in the main form, on a button click, I call another second form, where I start an infinite loop (while (true)). This suits the teacher, since he really has to work all the time (cycle). Now I was told that from the first form I would stop the cycle by pressing the button to change the values ​​​​(parameters in the cycle).
Tell me how to do it? What needs to be rewritten and changed by the fact that you have not had to work with it before?
Thank you in advance for your response.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question