>Hi
>
>I want to trigger a timer ony my form early whenever the user presses a command button
>
>What's the easiest way of achieving this?
>
>TIA
add a timer
tmrKeypressed (for example) to the form
set forms
KeyPreview to true
in forms
KeyPress event
LPARAMETERS nKeyCode, nShiftAltCtrl
THIS.tmrKeypressed.RESET
THIS.tmrKeypressed.enabled = .t.
RETURN DODEFAULT(@nKeyCode,@nShiftAltCtrl)
HTH
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]