![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |