add custom control to outlook toolbar in VSTO

Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Jan 2009
Posts: 1
Reputation: formanite is an unknown quantity at this point 
Solved Threads: 0
formanite formanite is offline Offline
Newbie Poster

add custom control to outlook toolbar in VSTO

 
0
  #1
Jan 8th, 2009
I want to add a custom control to a tool bar in outlook. I am wrting the following code

Office.CommandBarControl ilc_Menu_Send_Progress = (Office.CommandBarControl)ilc_MainMenu.Controls
.Add(Office.MsoControlType.msoControlCustom,(object) testControl1, missing, 1, true);

But i am getting the following error

Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC