Outlook Forms-Addin like "ActiveX"?

J

J. S. EDV

Hello,

I would like to write an Add-In, which I can import in an custom outlook
form like an activeX-Object. I have found many websites with information how
to reach fields in a custom form from an Add-In but I couldn't find any
information about how to import a whole user control written in C# in the
custom form.

Is there a possibility?

Thanks.

Jacek Schikora
 
K

Ken Slovak - [MVP - Outlook]

Outlook custom forms can use ActiveX controls, so that's what you'd have to
compile.

Be aware that many ActiveX controls don't work in Outlook forms and there's
no way to tell if yours will until you try it. Also, many times all of the
events, properties and methods of an ActiveX control won't work even if the
control works to a degree and doesn't crash Outlook. Again, the only way to
find out what works and what doesn't is by testing.
 
J

J. S. EDV

Hello Ken,

thanks for the answer. But how do I write an activeX-Control in C#? I
thought it is not possible to write activeX in .NET?

I have written an Usercontrol that is registered for COM-Interop, but this
control doesn't appear in the list of userdefined controls of the control
toolbox when I develop an outlook form.

Thanks

Jacek Schikora
 
K

Ken Slovak - [MVP - Outlook]

You use unmanaged code. You can do it in C++ or VB 6 or Delphi or various
other languages. I write ActiveX controls all the time using VB 6.
 

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