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
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