Enter as Tab Key

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
 
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
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top