View Single Post
  #4  
Old September 17th 07, 11:50 PM posted to microsoft.public.outlook.program_addins
newToOutlookProgramming
external usenet poster
 
Posts: 9
Default CommandBarComboBox on inspector toolbar (ol2003 + vsto 2005 se)

I have created a commandbarcombox on an inspector commandbar via a OL addin .

I am facing this issue of loose-value-on-mouse-click v/s
retain-value-when-keyboard-TAB for the text entered in that commandbarcombox .

(Q1) Any body any ideas on how to resolve this ?

(Q2) Is this a Microsoft bug or am I doing anything wrong ?


using Office = Microsoft.Office.Core;
..
..
..
MyCmdBarCbx = (Office.CommandBarComboBox)MyUICommandBar.Controls .Add(
Office.MsoControlType.msoControlEdit,
_MyMissing,
_MyMissing,
cmdBarControlPosition,
1);

MyCmdBarCbx.Width = 120;

MyCmdBarCbx.Tag = MyEntryId + MyRandomNo + MyStrings;

Office._CommandBarComboBoxEvents_ChangeEventHandle r MyCmdBarCbxHandler =
new Office._CommandBarComboBoxEvents_ChangeEventHandle r(MyCmdBarCbx_Change);
MyCmdBarCbx.Change += MyCmdBarCbxHandler;



Thanks

Ads