I have a doubt with my timer, when I start it with a button it executes my function as I ask but the problem comes when I try to stop it with the timer.stop() method, since it continues to execute in the timer.elapsed section , here the code
I already tried it with timer.dispose(), timer.stop(), timer.Enabled = false