Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Where is an option group's value updated?
Does anyone know how an option group detects which option button was selected and how it updates it's Value accordingly?
I want a form to return Form.OptionGroup.Value when a user selects a button by pressing enter. If I trap the enter in the button's keypress event, the OptionGroup's value has not yet been updated. However, if I try trapping via the InteractiveChange event of the OptionGroup, I miss out when the user presses enter on the first item in the list (because it is selected by default so no change took place).
I could set the initial value of the first button to 0 instead of 1 but I'd prefer to find a way around that if I could.
Any ideas?
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