PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Interoperability How make appt or task read only?

Reply

How make appt or task read only?

 
Thread Tools Rate Thread
Old 08-07-2003, 01:25 PM   #1
Bill Todd
Guest
 
Posts: n/a
Default How make appt or task read only?


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
  Reply With Quote
Old 09-07-2003, 01:01 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: How make appt or task read only?

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



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off