Use static variable:
Private Sub timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrnote.Tick
Static iCount as Integer
if iCount <10 then MsgBox("I got you!", vbCritical, "LOL")
iCount = iCOunt +1
or global variable:
Dim iCount As Integer = 0
Private Sub timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrnote.Tick
if iCount >10 then MsgBox("I got you!", vbCritical, "LOL")
iCOunt = iCount+1