Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ENTER key not working now
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00940335
Message ID:
00943352
Vues:
25
Okay, I finally resolved this by doing the following:

I had a ThisForm.cmdAdd.SetFocus in the form's INIT. The SetFocus used to be set to a textbox control on the PageFrame. By putting the setfocus back to the textbox control, the weird behavior has stopped. This is a SetFocus issue. The ENTER key now functions properly. I don't know why it works this way, but this is now working properly.

Cecil


>Cecil,

>Have you tried the debugger? Inside of the keypress of one of these controls, at the top of the method put:


>set step on
>debug
>Set focus on that control, and hit ENTER. Does it take you into that method? If it does, use the debugger to trace through the code and see if you find the culprit.

>>The form's KeyPreview is set to its default, .F. There were a few keypress methods set up to allow the user to escape the form while sitting on a control. I have even turned them off and I still cannot get the ENTER key to behave as it once did. It will not move forward but sits on the current control; this is a global thing within the form. I do have an older form dated August 10th that I could use to start over, but I didn't want to have to do that. I'll have to go through each control and procedure to put them back into the odler form.
>>
>Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform