The code below uses a timer to start a subroutine every ten minutes to scrape some information from a web page. Sometimes the web page being scraped does not load and the subroutine hangs. When the timer ticks again the subroutine is started again and an attempt to scrape the page is started again.
If the subroutine hangs how do I force it to terminate so when the timer ticks so a new instance of the subroutine is started?
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick