>Hi all,
>
>I know I can get Caps Lock's key state by calling CapsLock(). I'd like to warn my users if the key is on when they enter login info through a form. On the login form, I set the KePreview to .t. and in the KeyPress event I've got the following code:
>
>this.labelWarning.Visible = CapsLock()
>
>
>The problem is that when the Caps Lock key is turned off upon receiving the warning, the KeyPress event of the form does not fire, which means that the warning message remains on the screen.
>
>Is there a simple way to intercept the Caps Lock key press event?
>
>TIA
Save yourself all the work, what you want is here, ready to use, for free:
ctl32_balloontip - BalloonTip Class For VFP9
http://www.ctl32.com.ar/ctl32_balloontip.aspCarlos Alloatti