A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

AppointmentItem BeforeDelete Event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 25th 07, 04:35 AM posted to microsoft.public.outlook.program_forms
Khyati
external usenet poster
 
Posts: 10
Default AppointmentItem BeforeDelete Event

We are using Outlook to schedule web conferences and using outlook 2003. My
question is regarding the BeforeDelete event. BeforeDelete Event has been
coded in .net(2003) code behind using vb.net. when I right click on a
scheduled meeting on the calendar and click on delete, it rarely goes to the
BefreDelete event in code behind. So it just delete the meeting from the
calendar and meeting is still in there in our SQL database as it doesnt go to
BeforeDelete Even where the delete functionality has beeen coded. Could you
please help me on this.
Ads
  #2  
Old June 26th 07, 06:58 AM posted to microsoft.public.outlook.program_forms
John Guin
external usenet poster
 
Posts: 12
Default AppointmentItem BeforeDelete Event

when you save "rarely" for the delete event firing, do you mean "the event
fires but not consistently" or "the event never fires?"

If not consistently, have you made a list of variables on the occasions on
which it does not fire (like it never fires on the slowest machine we use, it
only fires when I step through the code in the debugger, it never fires if I
have some certain addin installed, etc...)

If that process help narrow it down, please post which .net framework you
are using, the relevant code, Outlook details (exchange server, POP, cached
mode, etc...). Maybe that would help locate the problem.

Thanks,
John

"Khyati" wrote:

We are using Outlook to schedule web conferences and using outlook 2003. My
question is regarding the BeforeDelete event. BeforeDelete Event has been
coded in .net(2003) code behind using vb.net. when I right click on a
scheduled meeting on the calendar and click on delete, it rarely goes to the
BefreDelete event in code behind. So it just delete the meeting from the
calendar and meeting is still in there in our SQL database as it doesnt go to
BeforeDelete Even where the delete functionality has beeen coded. Could you
please help me on this.

  #3  
Old June 28th 07, 04:10 AM posted to microsoft.public.outlook.program_forms
Khyati
external usenet poster
 
Posts: 10
Default AppointmentItem BeforeDelete Event

It s really hard to understand. Sometimes it fires on debug mode and
sometimes when not debugging. But sometimes it doesnt fire even on the debug
mode.

My code is:

Private Sub m_olAppointmentItem_BeforeDelete(ByVal Item As Object, ByRef
Cancel As Boolean) Handles m_olAppointmentItem.BeforeDelete
'Only runs the customized codes if it is vMeetingForOutlook form
If m_olAppointmentItem.FormDescription.Name.Trim.ToLo wer
"vMeetingForOutlook".ToLower Then Exit Sub

Try
'm_olAppointmentItem_Open(Cancel)
g_ResID = CType(GetOutlookProperty(m_olAppointmentItem,
"ResID").Value, Integer)
g_bIsMCUAppointment =
CType(GetOutlookProperty(m_olAppointmentItem, "IsMCUAppointment").Value,
Boolean)
g_bIsReservationlessLookup =
CType(GetOutlookProperty(m_olAppointmentItem, "IsMeetingRoom").Value, Boolean)
If Not g_bIsReservationlessLookup Then
System.Windows.Forms.Application.DoEvents()
Common.ErrorHandler.Log("m_olAppointmentItem_Befor eDelete",
"")
GetOutlookProperty(m_olAppointmentItem,
"IsMCUAppointment").Value = False
Cancel = Not XMLAppointment()
End If
Catch ex As COMException
SendErrorDetails(ex.ToString.Trim,
"m_olAppointmentItem_BeforeDelete - (COMException) ")
Common.ErrorHandler.HandleException(ex)
Cancel = True
Catch ex As System.Exception
SendErrorDetails(ex.ToString.Trim,
"m_olAppointmentItem_BeforeDelete")
Common.ErrorHandler.HandleException(ex)
Cancel = True
End Try
End Sub

We are using .net framework 1.1 and outlook 2003.


"John Guin" wrote:

when you save "rarely" for the delete event firing, do you mean "the event
fires but not consistently" or "the event never fires?"

If not consistently, have you made a list of variables on the occasions on
which it does not fire (like it never fires on the slowest machine we use, it
only fires when I step through the code in the debugger, it never fires if I
have some certain addin installed, etc...)

If that process help narrow it down, please post which .net framework you
are using, the relevant code, Outlook details (exchange server, POP, cached
mode, etc...). Maybe that would help locate the problem.

Thanks,
John

"Khyati" wrote:

We are using Outlook to schedule web conferences and using outlook 2003. My
question is regarding the BeforeDelete event. BeforeDelete Event has been
coded in .net(2003) code behind using vb.net. when I right click on a
scheduled meeting on the calendar and click on delete, it rarely goes to the
BefreDelete event in code behind. So it just delete the meeting from the
calendar and meeting is still in there in our SQL database as it doesnt go to
BeforeDelete Even where the delete functionality has beeen coded. Could you
please help me on this.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Weekday in AppointmentItem DENNIS BROWN Outlook and VBA 1 June 21st 07 09:10 PM
How to detect a user-deleted AppointmentItem? OctopusThu Add-ins for Outlook 6 December 21st 06 03:20 PM
How to modify an AppointmentItem? OctopusThu Add-ins for Outlook 6 December 14th 06 07:13 AM
How to efficiently get an AppointmentItem by its EntryID? OctopusThu Add-ins for Outlook 2 December 8th 06 04:39 PM
AppointmentItem question (2003) Dana DeLouis Outlook and VBA 1 January 18th 06 06:13 PM


All times are GMT +1. The time now is 06:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.