Enter as Tab Key

  • Thread starter Thread starter Pat
  • Start date Start date
P

Pat

I am using the following code in the keydown event to tab through 4
screens:

If e.KeyCode = Keys.Enter Then
e.Handled = True
Me.ProcessTabKey(Not e.Shift)
Else
e.Handled = False
MyBase.OnKeyUp(e)
End If

The tabbing works fine, however, there are several checkbox controls
within groupboxes which do not show as having focus when tabbing
through them. Typically, you will see a dashed box on the control when
it has focus. I know the tab is hitting them because you can select a
checkbox by pressing the space bar. When tabbing via the tab key, the
dashed box shows up on the controls, but using the enter key it does
not. Any ideas please?

TIA
Pat
 
I am using the following code in the keydown event to tab through 4
screens:

If e.KeyCode = Keys.Enter Then
e.Handled = True
Me.ProcessTabKey(Not e.Shift)
Else
e.Handled = False
MyBase.OnKeyUp(e)
End If

The tabbing works fine, however, there are several checkbox controls
within groupboxes which do not show as having focus when tabbing
through them. Typically, you will see a dashed box on the control when
it has focus. I know the tab is hitting them because you can select a
checkbox by pressing the space bar. When tabbing via the tab key, the
dashed box shows up on the controls, but using the enter key it does
not. Any ideas please?

TIA
Pat
From what I've read throughout this group, it seems this cannot be
remedied. It does seem odd that if a checkbox is actually selected,
then the rest of the checkboxes will show they have focus when tabbed
through...
 
Back
Top