Pretty much no matter what you do the result is not going to look like the
New control. You can place a CommandBarButton on your CommandBar and then
next to it the CommandBarCombobox control.
The combo would have its items being the list you want to present and you
can set the combo to use one of the following types: msoControlEdit,
msoControlDropdown, msoControlComboBox, msoControlButtonDropdown,
msoControlSplitDropdown, msoControlOCXDropdown, msoControlGraphicCombo, or
msoControlGraphicDropdown.
Play with those types until you get the look you want. Then to add items to
the combo list use the AddItem method of the control.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://
www.slovaktech.com/products.htm
I tried my ways of simulating the control & am not going good.
Can you please suggest me something deeper in the hack you have
advised earlier
"place a combo control next to a button control:
CommandBarButton is okay..I can create it.
How the other combo control should look like.. Usually combo box will
have a edit text & also a drop down right ? So, here what properties i
need to set for the combo control.Or, in other ways can you give me
the example of creating the combo control which will pop up a menu
underneath.
btnTest = (Office.CommandBarComboBox)commandBar.Controls.Add(
Office.MsoControlType.msoControlComboBox,
objMissing, objMissing, objMissing, objMissing);
where commandBar is my tool bar. I am using C# & coding for outlook
2003.
I am almost stuck with this, please help me out.