PC Review


Reply
Thread Tools Rate Thread

C# Forms being called by Outlook Forms?

 
 
Brian Orrell
Guest
Posts: n/a
 
      17th Mar 2004
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)


 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      17th Mar 2004
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)



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open forms in Organization Forms Library under Outlook 2003/ Lewsihd Microsoft Outlook Discussion 0 19th Jun 2008 07:22 PM
Forms authentication page not called R.A.M. Microsoft ASP .NET 7 11th Oct 2007 09:32 AM
Outlook 2003 - Forms Icon On toolbar doesn't list any forms =?Utf-8?B?S2ltLmluLkRlbnZlcg==?= Microsoft Outlook Form Programming 8 28th Jul 2006 04:35 PM
How do i convert existing forms to custom forms in outlook 2003 =?Utf-8?B?VGVk?= Microsoft Outlook Contacts 3 19th May 2005 10:28 PM
Dispose() called on Forms simon_w3@ntlworld.com Microsoft VB .NET 3 9th May 2005 05:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:38 AM.