PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Interoperability
How make appt or task read only?
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Interoperability
How make appt or task read only?
![]() |
How make appt or task read only? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Is there any way, via automation, to make an appointment or task read
only? I have an application that needs to add appointments to the Outlook calendar and I do not want the user to be able to change some of the appointments because they are legally mandated deadlines. Thanks, -- Bill |
|
|
|
#2 |
|
Guest
Posts: n/a
|
You can check when a item is opened or read if it is a new item by
looking for Item.EntryID = "" or Item.Size = 0. If neither of those is true then the item is an existing item. You can then lock each control on the form. You can also handle the Item.Write and Item.Close events in the form to cancel saving any changes. This can be done from form code. You have to be careful about how you do things so you also take care of in-cell editing of items from a table view. You can also try doing things from a COM addin and handling items from NewInspector for items that are opened, the Open event for items that are opened in an existing Inspector and SelectionChange to handle items that are edited in the table view. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Lead Author, Professional Outlook 2000 Programming, Wrox Press Lead Author, Beginning VB 6 Application Development, Wrox Press Attachment Options http://www.slovaktech.com/attachmentoptions.htm Extended Reminders http://www.slovaktech.com/extendedreminders.htm "Bill Todd" <bill@dbginc.com> wrote in message news:4hhlgv05oqaku549k05kpnmvpa7qn29ha4@4ax.com... > Is there any way, via automation, to make an appointment or task read > only? > > I have an application that needs to add appointments to the Outlook > calendar and I do not want the user to be able to change some of the > appointments because they are legally mandated deadlines. > > Thanks, > -- > Bill |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

