Alver

How to make a ComboBox Command Bar control like "Type a question for help" in all Office application

I create my own CommandBarComboBox in Outlook 2003, and set up a handler for Change event. I want to clear input text if users press Tab key for example, the sismilar behavior as "Help" combobox.

But I can't do this. I don't find any way to catch this action.

Change event doesn't call correctly - for example, if i press Tab button - event doesn't occur, but if i select some message from inbox - it fired. Why Change event doesn't occur immediately Where i can find info about how to make a control like "Type a question for help"



Re: Visual Studio Tools for Office Control like "Type a question for help"

Cindy Meister

Hi Alexander

Your only chance, I think, would be to add a control of type msoControlActiveX. IF you can figure out how to design one that will work on an Office command bar. As far as I know, this isn't documented anywhere.

Beyond that, you can work only with the events the CommandBar controls expose, and for a ComboBox that's the Change event. Generally, in the Office CommandBar object model pressing Tab moves you out of the control, so it won't trigger the Change event.






Re: Visual Studio Tools for Office Control like "Type a question for help"

Alver

thanks Cindy!

I get info from Ken Slovak - he says the same as you.
You can read our talk there: http://groups.google.ru/group/microsoft.public.developer.outlook.addins/browse_thread/thread/cf780a55a219e616/fe8636d958df1960 hl=ru#fe8636d958df1960