Any way to prevent user resize appointment item in calendar?

Add-in Express™ Support Service
That's what is more important than anything else

Any way to prevent user resize appointment item in calendar?
 
Ling Kiin




Posts: 11
Joined: 2017-02-28
Is there any event trigger before user extend the appointment by resizing (drag on end time) of appointment on calendar?

I need to prevent user to change the appointment item without updating the server.
Posted 11 Apr, 2017 02:43:40 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello Ling,

Connect to events of that item and handle the Write event: cancel the event if required.


Andrei Smolin
Add-in Express Team Leader
Posted 11 Apr, 2017 05:02:15 Top
Ling Kiin




Posts: 11
Joined: 2017-02-28
This is working if user click the appointment item first then drag the item to extend the time.

If user drag the appointment item without click it first, it won't connect to events.
Posted 11 Apr, 2017 05:35:48 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello Ling,

Get an Outlook.View using Explorer.CurrentView, check that View.ViewType is OlViewtype.olCalendarView, cast Outlook.View to Outlook.CalendarView, find the dates displayed using CalendarView.DisplayedDates,connect to all appointments within these dates, handle the Write event as required.


Andrei Smolin
Add-in Express Team Leader
Posted 11 Apr, 2017 06:04:01 Top