カウンターが 10 になると、「あなたのチケットは無料です」と表示されます。さらに10回クリックすると「チケットは無料です」と表示されるようにカウンターをリセットする方法がわかりません
Public Class Form1
Dim intCounter As Integer
Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click
Dim intTicketPrice As Integer = Val(Me.txtTicketNum.Text) * 8
intCounter = intCounter + 1
If intCounter = 10 Then
Me.lblFeed.Text = "Your tickets are free!!!"
ElseIf intTicketPrice Then
Me.lblFeed.Text = "Your tickets cost: " & intTicketPrice & " Dollars"
End If
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
intCounter = 0
End Sub
End Class