Programatically make CommandBarComboBox open

  • Thread starter Thread starter goran
  • Start date Start date
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
 
As far as I know there's nothing you can do like you want to do.
 
Thanks Ken. Is there any other type of dropdown box, other then
CommandBarComboBox that I can use in 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.
 
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.
 
Back
Top