>Hi Everybody,
>I have a Option Button Group on my form. I want to set focus to the next object when either of the option is selected. I wrote the command for this in the click event of the option group like - THISFORM.TxtFileName.SETFOCUS. When I ckick on the option button, control goes to TxtFileName, but if I select the option button by pressing the Enter Key, control goes to the object next to TxtFileName. Why this Happens?
>
>Regargs,
>Yash.
To what Nancy said, I want to add that TAB is the standard Windows key to go to the next field (Shift-TAB goes back to the previous field). ENTER and DOWN-ARROW work sometimes, but sometimes they have side-effects. You can either say "Well, this is the standard Windows interface (see, for instance, MS-Word dialogs)", or continue trying to change the definition of ENTER (and, perhaps, DOWN-ARROW) in some controls.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)