CommandbarComboBox change event

M

Muskaan

Hi,

I have a COM Addin for Microsoft outlook that adds a toolbar
containing a CommandBarComboBox (Edit box) and a CommandBarButton.

The problem is that the Change event is only fired when the "Enter"
/"Tab" key is pressed after changing the content of the ComboBox. So,
when a user enters some text in the combobox and then clicks the
Button(without pressing Enter or tab after entering text), the content
of the combobox is not kept and it returns to it's previous value.

Is there a way I can get the content of the ComboBox when the user
doesn't press Enter or tab before clicking the CommandBarButton?

Has anyone out there been successful in developing a workaround for
this problem?

One possible solution I can think of is to write a windows hook to
intercept Kill_Focus event for CommandBarComboBox, and get the new
text in the ComboBox(edit control)before the kill event of the
CommandButton is called... but I am not sure how this can be
done...Any Ideas????

Thanks a lot!
 
W

Word Heretic

G'day (e-mail address removed) (Muskaan),

If you're even contemplating system hooks you are several steps above
most of us :)

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Muskaan reckoned:
 

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