| | |
add custom control to outlook toolbar in VSTO
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Jan 2009
Posts: 1
Reputation:
Solved Threads:
0
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))
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))
![]() |
Other Threads in the C# Forum
- Previous Thread: How do you connect to a sql database using C#
- Next Thread: Server Files in Combobox ??
| Thread Tools | Search this Thread |
.net access algorithm angle array asp.net bitmap box broadcast c# capturing check checkbox client combobox control conversion csharp database databasesearch datagrid datagridview dataset datetime dbconnection degrees delegate design development disappear draganddrop drawing encryption enum eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net image input install interface java libraries list loop marshalbyrefobject math monodevelop mouseclick movingimage msword mysql operator path pause photoshop php picturebox pixelinversion platform polynomial post programming properties radians regex remoting richtextbox server sleep socket sql statistics string study system.servicemodel table tcpclientchannel text textbox thread time timer update usb usercontrol validation virtualization visualbasic visualstudio wpf wpfc# xml





