Outlook forms run VBScript code. Therefore, if your C# application exposes
public methods that can be called using COM, the Outlook form can use
CreateObject("MyApp.MyObject") and then use the resulting object's methods.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Brian Orrell" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
OK, so I've created an Add-In for Outlook that calls Windows Forms developed
in C#. This enables me to get at the Outlook Object Model from within C#
for sending emails, etc.
Question: Is there a way for custom Outlook forms to call out to C# Win
Forms?
Here's the scenario, I need a "New Message" form that operates the same way
as a normal email-message operates but it needs to have a custom "To..."
"Cc..." picker. I have a custom Contact Picker that has been designed in
C#. It calls out to Web Services to get it's list of contacts and to
support very specific search requirements. I want to be able to utilize the
form functionality within Outlook for the new message form and have the
"To..." button popup my custom C# form. The Contact Picker would return the
appropriate email addresses back to the caller and move on.
The only other option I see is re-writing the "New Message" Outlook form as
a C# Windows Form and have it be called from an add-in. It just seems like
reinventing alot of the wheel with that approach (supporting rich-text
editing, attachments, etc... when it is already "baked-in" to Outlook
Forms).
Any and all help GREATLY appreciated
--
Brian Orrell
MethodExperts, LLC
(E-Mail Removed)