Inserisci all'interno della tua classe-form il seguente codice (ovviamente completandolo):
codice:
    Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
        If m.Msg = &H111 Then
            'codice per resettare il contatore
        End If
    End Sub
.