A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Add controls with out publishing in C#



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 12th 06, 11:29 AM posted to microsoft.public.outlook.program_addins
lg
external usenet poster
 
Posts: 26
Default Add controls with out publishing in C#

Hi,
Is it possible to add a custom form to an Appointment Item and contols
to that custom form in C# and make the form visible with out publishing the
form ? What I want to do (and dont know if is possible) is if a user has the
add-in installed and opens an Appointment Item, the Appointment Item will
display the custom form but if user sends the appointment (meeting request)
to other users, it sends the normal appointment item without the custom form.
  #2  
Old July 12th 06, 03:12 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Add controls with out publishing in C#

An item of any type doesn't get a custom form added, it either uses a custom
form or uses the standard form for that Class of item.

It's never a good idea to add controls at runtime to a form, that one-offs
the item and causes various bad things. The best approach is to use an
already published custom form and set the MessageClass of the item to that
MessageClass to display your custom controls. After you display/harvest data
from the item you can then change the MessageClass back to its original
setting.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"lg" wrote in message
...
Hi,
Is it possible to add a custom form to an Appointment Item and contols
to that custom form in C# and make the form visible with out publishing
the
form ? What I want to do (and dont know if is possible) is if a user has
the
add-in installed and opens an Appointment Item, the Appointment Item will
display the custom form but if user sends the appointment (meeting
request)
to other users, it sends the normal appointment item without the custom
form.


  #3  
Old July 12th 06, 02:44 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Add controls with out publishing in C#

I doubt that it would work. Adding controls programmatically embeds the form definition into the item, so it would probably travel with the meeting request. Either wait for Outlook 2007 and form regions or use the third-party component at http://www.add-in-express.com/outlook-extension/ to accomplish the same thing in earlier versions.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"lg" wrote in message ...
Hi,
Is it possible to add a custom form to an Appointment Item and contols
to that custom form in C# and make the form visible with out publishing the
form ? What I want to do (and dont know if is possible) is if a user has the
add-in installed and opens an Appointment Item, the Appointment Item will
display the custom form but if user sends the appointment (meeting request)
to other users, it sends the normal appointment item without the custom form.

  #4  
Old July 12th 06, 04:11 PM posted to microsoft.public.outlook.program_addins
lg
external usenet poster
 
Posts: 26
Default Add controls with out publishing in C#

Thanks for the help Ken and hi Sue, I am working with Outlook 2003, is there
any way of adding a custom form in the New_Inspector event and when the user
selects Send (arranging a meeting with other users), in the send event remove
the custom form and send the appointment item as normal without the custom
form and therefore not one-offing the form.

  #5  
Old July 12th 06, 04:34 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Add controls with out publishing in C#

It might be possible in the AppointmentItem.Send event handler, but my experience is that anything involving custom forms and meeting requests is a little dicey.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"lg" wrote in message ...
Thanks for the help Ken and hi Sue, I am working with Outlook 2003, is there
any way of adding a custom form in the New_Inspector event and when the user
selects Send (arranging a meeting with other users), in the send event remove
the custom form and send the appointment item as normal without the custom
form and therefore not one-offing the form.

  #6  
Old July 12th 06, 04:54 PM posted to microsoft.public.outlook.program_addins
lg
external usenet poster
 
Posts: 26
Default Add controls with out publishing in C#

I can remove the controls from the custom form in the send event but when it
comes to removing the custom form itself (the tab on the appointment item) in
the event it dosnt work. I have also tried hiding the custom form also using
the "HideFormPage" method and that dosnt seem to work either.

I saw on another thread where you suggected to hide the form before
publishing it and then show it when needed but I am afraid it did'nt work
here. Do you have any suggestions why ?
  #7  
Old July 12th 06, 05:02 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Add controls with out publishing in C#

I saw on another thread where you suggected to hide the form before
publishing it and then show it when needed but I am afraid it did'nt work
here. Do you have any suggestions why ?


What in particular didn't work? Code snippet?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"lg" wrote in message ...
I can remove the controls from the custom form in the send event but when it
comes to removing the custom form itself (the tab on the appointment item) in
the event it dosnt work. I have also tried hiding the custom form also using
the "HideFormPage" method and that dosnt seem to work either.


  #8  
Old July 13th 06, 03:47 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Add controls with out publishing in C#

Usually in the NewInspector event handler the only properties of
Inspector.CurrentItem that may be available are MessageClass and Class,
EntryID may also be available. You are best waiting for the first Activate
of the Inspector.

But, as Sue mentioned sending meeting requests and trying to fudge things is
a frustrating exercise.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"lg" wrote in message
...
Thanks for the help Ken and hi Sue, I am working with Outlook 2003, is
there
any way of adding a custom form in the New_Inspector event and when the
user
selects Send (arranging a meeting with other users), in the send event
remove
the custom form and send the appointment item as normal without the custom
form and therefore not one-offing the form.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Active X Controls in Forms Oliver Gräser Outlook - Using Forms 6 June 11th 06 07:06 PM
How to add dynamically add controls in Outlook 2003 Rahul Outlook and VBA 5 May 8th 06 03:38 PM
How to add dynamically add controls in Outlook 2003 Sue Mosher [MVP-Outlook] Outlook - Using Forms 4 May 8th 06 03:38 PM
Using MFC controls in Outlook Add-in (ATL/C++) Kim, KiSong Add-ins for Outlook 0 March 7th 06 08:03 AM
How do I use controls in Outlook forms Jeff Strickland Outlook - Using Forms 3 February 28th 06 02:01 AM


All times are GMT +1. The time now is 11:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.