Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement