Outlook Add-in save issue

D

Developer

Hi,

I am writing an outlook add-in for Office 2003 + Windows XP using VB.NET
1.1.
Ref:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnout2k2/html/odc_oladdinvbnet.asp

I have copied existing Outlook appointment form and added a new Tab called
"Resources" next to appointment tab. I have added couple of UserProperties
into this form.

The problem is: When user tries to change any existing appointment form, and
press Escape key, appointment form is closed without saving except
UserProperties for custom "Resources" form.

I have added the following code that is called when user presses Escape key:
Private Sub m_olAppointmentItem_Close(ByRef Cancel As Boolean) Handles
m_olAppointmentItem.Close
m_olAppointmentItem.Close(OlInspectorClose.olDiscard)
Cancel = True
End Sub

Kind Regards,

Developer
 
D

Developer

Hi,

Does anyone know why UserProperties saves automatically, even though user
presses Escape key?

Regards.
Developer
 
S

Sue Mosher [MVP-Outlook]

I don't understand this part of your description:
The problem is: When user tries to change any existing appointment form,
and press Escape key, appointment form is closed without saving except
UserProperties for custom "Resources" form.

What exactly is saving (or not saving)? It sounds like you're saying that
the only user changes that save are those to the Resources page, which
doesn't make any sense.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
D

Developer

Hi Sue,

Thanks for your query. It's really hard to explain as it behaves strange.

I have inherited design from standard outlook Appointment class and save as
"Resources" form. I set default form for Calender interface is Resources, so
double click on Appointment area, opens "Resources" form. For example, I
have a simple checkbox into Resources page, which is linked to User
Properties.

This behaviour happens to modify appointment only. When user opens exsting
"Resources" form and change "Subject", "Start time", "End Time" etc..
(Standard controls of the Appointment form) and by pressing Escape key, the
form is closed. When user re-open same appointment immediately, the changes
are ignored (means not saved into Outlook).

If user changes "Resources" page checkbox value (Maked as Tick) and press
Escape key, the form is closed. When user re-open same appointment form
immediately, The changes into "Resources" page is saved temporary (until
user closes Outlook completely and re-open Outlook again), but "Appointment"
page changes are ignored immediately. Is it anything to do with Outlook
UserProperties?

What's reason for this strange behaviour? I am using Outlook 2003 SP1
(version 11.6359.6360). I will try another version of Outlook soon.

Thanks again for your help.

Regards,
Developer
 
D

Developer

Hi,

I have tried Outlook 2000 and same issue. Could anyone help me with this
issue?

Thanks in advance.

Regards,
Developer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top