Item Property CHange

D

dxider

Hi, I have a problem with the Form default properties, I'm working in Outlook
2003, when a property is changed from its Inspector, all events fire
correctly and some calculated fields are updated, but when the change is done
from the Outlook UI (I mean, the View with the Day,Month,Year arrangement),
the PropertyChange event doesn't fire, and the calculated fields remain the
same. I'm working with Custom Appointment items and need to perform that,
this all because a dumb user cries if the form can't be updated in "HIS" way.
Any one who can help me to perform that action with that exactly workpath??

Anyway, thanks 4ur help and time.
Regards.
 
S

Sue Mosher [MVP]

Please tell us about the code context. You've posted in a VBA/general
Outlook programming newsgroup, but part of your description suggests that
you're working with code behind a custom form.
 
D

dxider

Ok, the code is behind the custom form, it has the default Fields and some
custom tabs, controls and Fields, when the user changes the value from the
Appointment item inspector, I cath the PropertyChange event, in this case,
I'm working with the Duration Field.

I have 2 custom Forms, one for the Task item, and another for the
Appointment, the appointment is used to record Activities, and the Task to
group a set of Activities, when the user changes the Duration (from
inspector), the code fires, and the related parent Task is updated with the
SUM of all its activities Duration value, but when the Duration is changed
from Outlook UI, the PropertyChange event won't fire, and the Task calculated
value is not Updated.

I hope to be clear with my question here.
I want to fire the PropertyChange event, even is the Duration value is
changed from Outlook UI (this happens when you drag the Appointments borders
to cover more time).

Thanks for your comments.
 
S

Sue Mosher [MVP]

The workaround for PropertyChange not firing on that kind of change is to
disallow any changes made in the Explorer UI. See
http://www.outlookcode.com/codedetail.aspx?id=79 for a code sample.

For future reference, the custom forms forum is "down the hall" at
microsoft.public.outlook.program_forms or, via web interface, at
http://www.microsoft.com/office/com...spx?dg=microsoft.public.outlook.program_forms

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
S

Sue Mosher [MVP]

Also, FWIW, I think that PropertyChange does fire, but not until the user
takes the focus off that item by putting it on another item or switching to
another folder. That time lag can be considerable and may be contributing to
the sense that it's not working.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 

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