How to forbid the context menu in mshtml editor?
COM
1
Posts
1
Posters
0
Views
1
Watching
-
I just only forbid contextmenu in mshtml control. The HtmlDocumentClass containt the event of HTMLDocumentEvents2_Event_oncontextmenu,so I write the code below ------------------------------------------ doc.HTMLDocumentEvents2_Event_oncontextmenu+=new mshtml.HTMLDocumentEvents2_oncontextmenuEventHandler(doc_HTMLDocumentEvents2_Event_oncontextmenu); private bool doc_HTMLDocumentEvents2_Event_oncontextmenu(mshtml.IHTMLEventObj pEvtObj) { return false; } // ------------------------------------------------------ But the editor,mshtml control can not edit when the property of designMode is 'On' using keyboard. Can you tell me why? And how to deal with the error? Thank you very! Note:The question has been in the C# subject.