Custom C# control in Outlook addin

M

Michael

Hi,

I want to add a simple C# control (a checkbox for example) to an
Outlook toolbar.
I created a simple Outlook addin using C# and VSTO in Visual Studio
2005.
I had no other issues, except that the controls you can work with are
quite limited in number.

I tried the approach of using the _CommadBarActiveX interface but
without success.
I know that MS support is poor in this case, but I've seen this
approach working.
Any suggestions will help.

Thanks,
Michael
 
K

Ken Slovak - [MVP - Outlook]

You can only add the following types of controls to a CommandBarsControls
collection:

msoControlButton, msoControlEdit, msoControlDropdown, msoControlComboBox, or
msoControlPopup
 
K

Ken Slovak - [MVP - Outlook]

However they did it they didn't use any supported method. If you use the
CommandBars interface you get an error trying to add any other type of
control.
 
M

Michael

Ok, thank you again.
I give up for the moment.
I already created a .net form that is displayed when pressing a
(msoControlButton) button in my addin, and that gives me enough freedom
to play with .net controls.
If i will find something new, I will come back with a post.

Thanks,
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top