![]() |
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
|
|||
|
|||
![]()
I am having an issue that I am wondering if anyone can shed some light
on. I have customized an outlook contact form by making the second tab "P. 2" visible, then adding additional controls to it. I have code in the Item_Open event on the contact form that sets the visible text of the tab with code similar to: dim objPages dim objPage set objPages = item.getinspector.modifiedformpages set objPage = objPages(1) objPage.Name = NewValue however this line of code causes the Contact form to become "dirty". For example, if I open a contact, then immediately after the contact opens I close the contact, Outlook tells me that data has changed and asks if I want to save my changes. If I remove "objPage.Name = NewValue" from the Item_Open event, when I open a contact and immediately close it, it just closes and I am not prompted to save. Is there a way to dynamically set the visible text of the tab on a contact form without causing the contact form to become "dirty"? Or failing that is there a way to tell the contact form that it is not "dirty" without saving the contact form? This is occurring on both Outlook 2003 and Outlook 2007. The code in question is running on the Outlook Contact form, but there is also an addin involved if there is a way to accomplish the necessary task from the addin. If there is no way to accomplish this task using the Outlook form or with an addin, is it possible to do it through any level of code c++, exchange client extension, etc... Thank you |
#2
|
|||
|
|||
![]()
Maybe a dumb question, but why not rename the page in the form design itself? I suspect that renaming it at run time will one-off the item, which will cause problems.
There is no way to "undirty" an item other than to save it. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "sublimese" wrote in message ... I am having an issue that I am wondering if anyone can shed some light on. I have customized an outlook contact form by making the second tab "P. 2" visible, then adding additional controls to it. I have code in the Item_Open event on the contact form that sets the visible text of the tab with code similar to: dim objPages dim objPage set objPages = item.getinspector.modifiedformpages set objPage = objPages(1) objPage.Name = NewValue however this line of code causes the Contact form to become "dirty". For example, if I open a contact, then immediately after the contact opens I close the contact, Outlook tells me that data has changed and asks if I want to save my changes. If I remove "objPage.Name = NewValue" from the Item_Open event, when I open a contact and immediately close it, it just closes and I am not prompted to save. Is there a way to dynamically set the visible text of the tab on a contact form without causing the contact form to become "dirty"? Or failing that is there a way to tell the contact form that it is not "dirty" without saving the contact form? This is occurring on both Outlook 2003 and Outlook 2007. The code in question is running on the Outlook Contact form, but there is also an addin involved if there is a way to accomplish the necessary task from the addin. If there is no way to accomplish this task using the Outlook form or with an addin, is it possible to do it through any level of code c++, exchange client extension, etc... Thank you |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can a contact form I created be set up as the default contact form | Andrea | Outlook - Using Contacts | 2 | January 31st 08 09:47 AM |
Forcing Outlook custom form as "dirty" | karlman[_2_] | Outlook - Using Forms | 1 | January 9th 08 10:19 PM |
Force Outlook to reload form region definitions. | jaredb | Add-ins for Outlook | 3 | August 31st 07 09:42 PM |
How to replace Default Contact form with Customised conact form using VBScript code | Satish Boddapati | Outlook - Installation | 0 | October 12th 06 09:19 AM |
OL2003 - can you auto-fill a singel new contact form with online form data | TimR | Outlook - Using Contacts | 1 | February 15th 06 02:43 PM |