Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid, txtBox Loses Focus Before KeyPress Event
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00271789
Message ID:
00271801
Views:
21
>In a text box of a grid, I have a price field that user's fill in. The InputMask for this Grid column is $$999,999.99. When the users fill in the amount including cents, the txtBox automatically loses focus and the focus goes to the next cell in the grid. What I need is to move down the grid one row. This can be accomplished fine when the user enters a whole dollar amount (without cents) and then presses Enter because I have the following code in the txtBox.KeyPress Event...
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>IF nKeyCode = 13
>	KEYBOARD '{DNARROW}'
>ENDIF
>
>
>However, this code never gets the opportunity to fire when the user enters a price including cents, reaching the end of the InputMask. Any suggestions? TIA, Chuck.

Try putting code in the textbox's LostFocus method.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform