SendKeys “{TAB}” does not move focus to another control when ComboBoxEx is in focus

Summary

Id: 1411.2
Type: Bug Bug
Current Status: Resolution Identified

Detail

11 Jan 2004 Open Ferry van de Berg

I have a question about your ComboBoxEx control;

I use the following code to let the program operator use the Return key to move between controls;

Private Sub Form1_KeyDown(Keycode As Integer, Shift As Integer)
   If KeyCode = vbKeyReturn Or KeyCode = vbKeyDown Then SendKeys "{TAB}"
End Sub 

It works fine with all the controls, but not with the ComboBoxEx control, is there something wrong with my code?

I also tried some other code, but it seems not to work.

12 Jan 2004 Resolution Identified Steve McMahon

This can be fixed by adding the same code to the ComboBoxEx control’s own KeyDown event. However, this indicates that there is some sort of issue with the focus handling, which I have not yet got to the bottom of.