Hi all,
I have the following code:
if (DocEvents.oncontextmenu != null)
DocEvents.oncontextmenu += new
HTMLDocumentEvents2_oncontextmenuEventHandler(this .RaiseContextMenuClicked);
This event is an autogenerated event from the mshtml COM object.
The first line fails with a compiler error that oncontextmenu can only be
used with += or -=. The comparison isn't allowed. Calling RemoveImpl also
doesn't work with the same error.
What do I need to do to check whether this delegate is already hooked up?
+++ Rick ---
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web