DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   add custom control to outlook toolbar in VSTO (http://www.daniweb.com/forums/thread167013.html)

formanite Jan 8th, 2009 12:16 pm
add custom control to outlook toolbar in VSTO
 
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))


All times are GMT -4. The time now is 3:34 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC