B
bstrum
I have created a commandbarcombox on an inspector commandbar like this:
MO.CommandBarComboBox ctl = (MO.CommandBarComboBox)ctls.Add(
MO.MsoControlType.msoControlEdit,
System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
true);
ctl.Caption = "txt";
ctl.Style = MO.MsoComboStyle.msoComboNormal;
ctl.Visible = true;
ctl.Text = "Some Value";
The control shows up on the toolbar but there is a usability issue under
Office XP and 2003. After the user enters text in this control, it reverts
back to the original text if the user clicks somewhere else (such as the
message body). Hitting tab, however, preserves the newly entered text. Why
is this and how do I make this control behave like a textbox should?
Thank you,
Benjamin Strum
ThinkTron Corporation
MO.CommandBarComboBox ctl = (MO.CommandBarComboBox)ctls.Add(
MO.MsoControlType.msoControlEdit,
System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
true);
ctl.Caption = "txt";
ctl.Style = MO.MsoComboStyle.msoComboNormal;
ctl.Visible = true;
ctl.Text = "Some Value";
The control shows up on the toolbar but there is a usability issue under
Office XP and 2003. After the user enters text in this control, it reverts
back to the original text if the user clicks somewhere else (such as the
message body). Hitting tab, however, preserves the newly entered text. Why
is this and how do I make this control behave like a textbox should?
Thank you,
Benjamin Strum
ThinkTron Corporation