Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter key with Radio Buttons
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00131998
Message ID:
00132117
Vues:
15
>Does anyone know of a way to make the enter key not go down and turn on each button in an option group? I would prefer that it moves to the next control in tab order!

How about something like the following in the keypress of each option button:


IF nKeyCode = 13
NODEFAULT
lnParentTabIndex = this.parent.TabIndex
FOR EACH loControl IN this.parent.parent.Controls
IF loControl.TabIndex = lnParentTabIndex+1
loControl.SetFocus()
RETURN
ENDIF
ENDFOR
*-- Not found - set focus to 1st item on parent of option group
this.parent.parent.Controls(1).SetFocus

ENDIF
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform