.NET 2.0 WebBrowser Mouse events

G

Guest

Is there any way to get mouse events inside a .NET 2.0 Webbrowser control. I
would like to used a web browser control do display an HTML page, but not
allow browsing or context menus. It will act as a viewer, but by clicking on
the links, certain things should happen.

Any advice is welcome.
 
L

Le Minh

you can change the context menu of webbrowser control by this way:
webBrowser1.Document.ContextMenuShowing +=

new HtmlElementEventHandler(Document_ContextMenuShowing);

where:
private void Document_ContextMenuShowing(object sender, HtmlElementEventArgs
e)

{

// something here...

}

---------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top