Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter key with Radio Buttons
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00131998
Message ID:
00132117
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform