focus on radio button

  • Thread starter Thread starter Amit D.Shinde
  • Start date Start date
A

Amit D.Shinde

I am having 4 controls on my form
name and tab index property of them
is as follows

Name Tabindex
Textbox1 0
Radiobutton1 1
Radiobutton2 2
Button1 3

on run time the Focus is on TextBox1
If I press the Tab key Focus directly goes to Button1
It doesn't go to RadioButton1 and RadioButton2.....
But if I press left arrow when Focus is on Button1 then it goes to RadioButton2
How does it happen?
I want focus to go to radioButton1 from TextBox1 on pressing Tab Key
Help Me
Amit Shinde
 
Hi Amit,
I did test it,
What I see is that the Tab goes only to a selected RadioButton
The left Arrow goes to every control and when it is a radiobutton select it
(so after you have used the left arrow once to come on a radiobutton, the
route of the Tab is changed)
I don't know if it is strange.
I hope this helps
Cor
 
Amit D.Shinde said:
I am having 4 controls on my form
name and tab index property of them
is as follows

Name Tabindex
Textbox1 0
Radiobutton1 1
Radiobutton2 2
Button1 3

on run time the Focus is on TextBox1
If I press the Tab key Focus directly goes to Button1
It doesn't go to RadioButton1 and RadioButton2.....
But if I press left arrow when Focus is on Button1 then it goes to
RadioButton2 How does it happen?
I want focus to go to radioButton1 from TextBox1 on pressing Tab
Key Help Me
Amit Shinde

Set Radiobutton1.Tabstop = True. When pressing Tab when Radiobutton1 has the
focus, the button gets the focus. You have to use left/right or up/down to
select different radiobuttons.
 
Back
Top