>Hi,
>I have a form that I am using as splash screen. When it comes up, it stays for 2 secs and goes away. If user presses SPACEBAR key down then it should stay even after 2secs until user finally leaves SPACEBAR key up.
>
>In Foxpro I don't see any events for key down and key up. Only event that is available is Keypress for keyboard events.
>Puri Malluru
Space bar produces a true ASCII character. So there is no up and down, just pressed or not pressed. You might experiment with testing for the shift keys: uppercase, control, or alt.
My preference would be to use the mousedown and mouseup events. If the user wants to keep the splash screen visible they click on it and hold the clicker down. You keep it visible until they let go and there is a mouse up event.
HTH.
Peter Robinson
Peter Robinson ** Rodes Design ** Virginia