Using DefaultMethod with WebBrowser
- From: "Bruce" <brucewolfe@xxxxxxxxxxxxxxx>
- Date: 9 May 2006 12:20:24 -0700
I'm trying to convert a web browser control that was using the old
AxSHDocVw.AxWebBrowser control and it uses the DefaultMethod something
like this:
[DispId(0)]
public void DefaultMethod()
{
// Get the event.
MSHTML.IHTMLEventObj pobjEvent = ((MSHTML.IHTMLDocument2)
axWebBrowser.Document).parentWindow.@event;
// Display information about the event.
MessageBox.Show("Event Info\nType: " + pobjEvent.type + "\nElement: " +
pobjEvent.srcElement );
}
How can I do the equivalent using the new
System.Windows.Forms.WebBrowser?
Thanks in advance.
.
- Prev by Date: Re: Windows UserControl not displayed in remote IE
- Next by Date: RE: ASP.NET 2.0 deployment (w/ SQL Srvr 2005) error
- Previous by thread: Discovering the assembly names in your project ?
- Next by thread: How to...
- Index(es):