Page 1 of 1

OptionButton

Posted: 21 Oct 2009, 14:16
by itmg
Hi,

new problem with the optionbutton.

Place two OptionButtons onto a form (opt1 and opt2).
Set following properties:
opt2.Selected = True
opt1.TabIndex = 0
opt2.TabIndex = 1

When you run the application, the optionbutton opt1 is selected instead of opt2.
After the Form_Load event, the optionButtons_selectionchanged events are fired.

Maybe, the property TabIndex causes this behavior.
When you change the values of the tabindex properties, the OptionButton opt2 is selected.

Re: OptionButton

Posted: 22 Oct 2009, 09:01
by TiKu
Yeah, that's the normal behavior. If the OptionButton receives the focus, it is selected. And since the control, whose TabIndex property is set to 0, receives the focus on application startup...