Programatically make CommandBarComboBox open

G

goran

I made Outlook Add-in and it has CommandBarComboBox control that shows up in
the Outlook toolbar. It has several items in the list. Based on what user
selects CommandBarComboBox repopulates with different values. I want
CommandBarComboBox to open automattically when I click on the item in the
list(or stay open) and not close. User has to click on the CommandBarComboBox
to open it and see the result. CommandBarComboBox has only one event
"changed". I couldn't do anything with that. Any ideas how can I do this in
the code. I tried with API call that works with VB combo box, but it takes
hWnd as a argument which CommandBarComboBox doesn't have. Couldn't do it with
Sendkeys neither because it seems that you can only cause CommandBarComboBox
to open if you click with the mouse on the down arrow. Any help is greatly
appriciated.

Thanks,

Goran
 
K

Ken Slovak - [MVP - Outlook]

As far as I know there's nothing you can do like you want to do.
 
G

goran

Thanks Ken. Is there any other type of dropdown box, other then
CommandBarComboBox that I can use in outlook?
 
K

Ken Slovak - [MVP - Outlook]

Not natively. Your choices are button, combo and popup.

Some 3rd party libraries or frameworks such as Add-In Express claim to let
you use any form from the collection available for managed code in Windows
Forms as Outlook controls for menus/toolbars but then you're locked into
that framework, for good or bad.
 
G

goran

Thanks a lot for your help.

Ken Slovak - said:
Not natively. Your choices are button, combo and popup.

Some 3rd party libraries or frameworks such as Add-In Express claim to let
you use any form from the collection available for managed code in Windows
Forms as Outlook controls for menus/toolbars but then you're locked into
that framework, for good or bad.
 

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