Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyboard /Cursor Control
Message
 
 
To
13/02/2007 10:21:26
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01195131
Message ID:
01195136
Views:
22
>Hi all
>
>I can use a little help.
>
>I am trying to control the cursor on a form using keyboard strokes.
>
>Example;
> A form has several rows of data input fields. Using the Up & Down Arrow keys
> I want to set the focus to the first field in each row.
>
>I believe I must use the KeyPress Event but I do not know what the code like.
>
>No examples in the help.
>
>Terry

You may try to code the form's KeyPress method for your purpose. You may need to have a property of the form to hold the current row number and have some distinctive way to identify the first control in each Nth row. Don't forget to add NODEFAULT into the KeyPress event for the Up/Down arrow keys.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform