I am trying to use a GoTo statement but it says "Error 1 Labels are not valid outside methods."
My code is like this:
Public Sub Start_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Start.Click
Start:
Dim ......
End Sub
Public Sub Retry_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Retry.Click
GoTo Start
End Sub
I know it works when I do this:
Public Sub Start_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Start.Click
Start:
Dim.....
GoTo Start
End Sub
but that just stalls the program cause it's going in loops. How do I make this work?