General information
Category:
Forms & Form designer
>I've tried this in form's .gotfocus():
>
>this.optiongroup1.Buttons[this.optiongroup1.value].setfocus
>
>and it worked, but in general case this is still bad, because the form may have lost focus when you had any other control having focus, so restoring focus to your form would always return focus to the optiongroup. Ideally, if optiongroup had a .gotfocus event, that would be the best place to put the above command, but it doesn't.
>
>So, the trick is to put the optiongroup into a container, which does have a .gotfocus, and the command to set the focus to the correct optionbutton goes there. Tried, works.
Thanks Dragan, that does work. And how are you going anyway? Wife and daughters all OK?
Regards
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only