CommandBarComboBox events don't fired

W

Winfried Vater

Hi,
I have a problem with my created custom CommandBarComboBox (Word 2003 AddIn,
using VSTO2005SE). I have also created CommandBarButtons (defined at class
level and using the Tag-Property) and they work fine. When I change the
document, the combobox-change-event wont fire (the buttons fire the click
events as expected).

The CommandBarCombobox is declared in the ThisAddIn-Class like this:
Office.CommandBarComboBox myComboBox;

....and defined in the ThisAddIn_StartUp-Method like this:
if(myComboBox == null) {
myComboBox =
(Office.CommandBarComboBox)myToolBar.Controls.Add(Office.MsoControlType.msoControlEdit, missing, missing, missing, true);
myComboBox.Style = Office.MsoComboStyle.msoComboLabel;
myComboBox.Caption = "Input:";
myComboBox.Tag = "myComboBox";
myComboBox.Change += new
Office._CommandBarComboBoxEvents_ChangeEventHandler(myComboBox_Change);
}

Thanks for any Help,
Winfried
 

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