Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / August 2003

Tip: Looking for answers? Try searching our database.

(Temporary)Disable event handlers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Markus Kinzler - 25 Aug 2003 09:27 GMT
I created a custom form including an ActiveX-Control.
This form includes a Item_write handler in vbscript.

When I try to modify the item externally ( a COM-AddIn) the event
handler is called and tries to get access to the ActiveX-Control.

Is it possible to disable the event handler during update of the
record through the AddIn.

Tnanks in advance.

Markus Kinzler.
Rainer Schwenkreis - 25 Aug 2003 14:22 GMT
Hello Markus,

> I created a custom form including an ActiveX-Control.
> This form includes a Item_write handler in vbscript.
[quoted text clipped - 8 lines]
>
> Markus Kinzler.

You can set a global Boolean Variable in Item_Open. If your Item is Modified
by your AddIn Item_Open
is not called.

e.g.

Dim bOpenedAsForm

Sub Item_Open
     bOpendAsForm = true
End Sub

Sub Item_Write
     if not bOpendAsForm then exit sub

    ' Your Code here

End Sub
Markus Kinzler - 26 Aug 2003 09:08 GMT
Hello Rainer,

Thank you for your answer.

I already tried this, but I still can't write back my modifications to
an (appointment)item. I got an EOleSysError ( "Vorgang kann nicht
beendet werden!") when calling Item.Save within the AddIn (if parts of
the appointmentitem has been changed; no difference of standard as
Subject or userdefined properties are changed.)

Markus Kinzler.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.