Button pressed and hold for x time

I have touchscreen and i simple button in my app, i want to press the button for 3 seconds and after the release i get the info.
Is possible ?
I am looking around in forum but i don’t see any related thread for this.

TimeOver As boolean = false
(Mode = Off, Period = 3000)


Sub Action() TimeOver = true End Sub


Function MouseDown(X As Integer, Y As Integer) As Boolean TimeOver = False Timer1.mode = 1 return true End Function

Function MouseUp(X As Integer, Y As Integer) As Boolean if TimeOver = true then MsgBox "MouseUp" end if End Function

Thank you @Axel Schneider was perfect… :slight_smile: