A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Programatically make CommandBarComboBox open



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 30th 07, 09:29 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Programatically make CommandBarComboBox open

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
Ads
  #2  
Old December 3rd 07, 01:44 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Programatically make CommandBarComboBox open

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

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
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


  #3  
Old December 3rd 07, 06:28 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Programatically make CommandBarComboBox open

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

"Ken Slovak - [MVP - Outlook]" wrote:

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

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
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



  #4  
Old December 3rd 07, 07:07 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Programatically make CommandBarComboBox open

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


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


  #5  
Old December 3rd 07, 08:38 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Programatically make CommandBarComboBox open

Thanks a lot for your help.

"Ken Slovak - [MVP - Outlook]" wrote:

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a pic. attachement be previewed before I open it? Mr. Nemo Outlook - General Queries 2 November 20th 07 01:04 PM
CommandBarComboBox on inspector toolbar bstrum Add-ins for Outlook 3 September 17th 07 10:50 PM
HOWTO: Get the CommandBarComboBox event on the inspector tonyl Add-ins for Outlook 3 November 7th 06 01:18 PM
Calendar will not let me open to make new apt. Styl4u Outlook - Calandaring 8 August 30th 06 05:03 AM
CommandbarComboBox-Event in COM Add-In (VB .net 2005) mcp_virtue Outlook and VBA 0 February 12th 06 09:00 PM


All times are GMT +1. The time now is 09:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.