ComboBox & TabIndex on Outlook 2007 Form Region

C

ChrisW

Hello,

I'm encountering a problem with tabbing through ComboBox controls on a Form
Region in Outlook 2007.
I've created a new Outlook VSTO addin using Visual Studio 2008, and added a
blank form region to it.
Onto the form region, I've dragged two text boxes and two ComboBox controls.
They are aligned vertically:

textBox1
textBox2
comboBox1
comboBox2

textBox1 has TabIndex of 1, textBox2 has TabIndex of 2, etc. so they are all
in order. They are all just empty controls, there's no code for filling them
with values or data or such like.

When the form region loads in Outlook, textBox1 correctly has the focus.
If I click into comboBox1 with the mouse, the text cursor moves to that
control.
Now, if I press the TAB key on the keyboard, focus actually moves to the
textBox2 control, as opposed to moving onto the next control in the tab
order, comboBox2.

This doesn't seem like the correct behaviour. If I repeat the layout and
tab orders of these fields on a normal Windows form, it works as I expect
(ie. when comboBox1 has focus, hitting TAB key moves onto comboBox2)

Is there something I'm missing?
As I said, it is blank VSTO 2008 addin, with a form region that just has the
four controls on it. I haven't written any extra code to do any manual
focussing or anything like that.

Any pointers would be greatly appreciated.
 

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