Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing HOME & END in grid
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00167458
Message ID:
00167468
Views:
21
Yeah,

The KeyPreview is set and the other keystrokes fire ( page-up, page-down, ENTER, escape, etc) but the HOME and END are ignored. I'm guessing that this is because HOME and END are valid keystrokes for a textbox (they move the insertion point to the beginning or the end of the text box)... Hey... maybe if I make the textboxes disabled... Hmmm...

Thanks anyway...

Larry

>Larry,
>
>Is the form's KeyPreview property set to .T.? If not, the form's event won't fire.
>
>>Hello all,
>>
>>I've tried all the "workarounds" I can think of...
>>
>>I hope you can help...
>>
>>I'm displaying a form with a grid showing several records... I want the user to be able to go to the top of the file by pressing HOME and the bottom of the file by pressing END. I've been trying to use the KEYPRESS method of the form to capture these keystrokes, but they're not recognized at that level. I think that the keystroke is getting stuck in the columns textbox.keypress method...
>>
>>If this is so, then do I need to sub-class the textbox and use that in my columns? I tried that and the controlsource data didn't display...
>>
>>Is there another way to grab the HOME and END keystrokes from a column's textbox or is there something else happening here?
>>
>>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform