Mar 29, 2020 11:16 AM|RateFor|LINK
I have a website that lets the user save an object. This 'save' takes a long time to execute. I put a save icon on the menu. The icon goes to a web form. The page displays an animated hourglass to show time passing. In the Form_Load command, I
put a timer that I want to execute only once. In the timer event, I put 'timer1.enabled = false'. Then I call the lengthy save routine (in that event). I have the timer interval set for 100. (I don't call the 'save' event in the form-load event because
the form would not appear until the lengthy operation is over.)
But I get an overflow. I think what is happening is that the timer1 event takes so long that it fires more events, even though 'timer1.enabled' was set to false.
Is there a way around this?