By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,671 Members | 1,387 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,671 IT Pros & Developers. It's quick & easy.

Does C#, axWebBrowser, designMode and EventHandler work together?

P: n/a
I inserted a WebBrowser-Control in my c# program. Moreover I activated the designMode. My prorgam worked fine.
I was able to edit the site. I want to add my own context menu that is showed when the user press the right mous
button. I added this code

private void DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e

mshtml.HTMLDocument doc = (mshtml.HTMLDocument) this.axWebBrowser1.Document
doc.designMode="On"

mshtml.HTMLDocumentEvents2_Event iEvent = (mshtml.HTMLDocumentEvents2_Event) doc
iEvent.onmouseup += new mshtml.HTMLDocumentEvents2_onmouseupEventHandler(s howcontextmenu)
private void showcontextmenu(IHTMLEventObj obj

...
After that I was not able to do anything with the editor, but my menu worked

Can somebody tell my how do I correct my code that the context menu and the editor worked

Thanks, Steffe

Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.