System.Windows.Forms.HtmlElementEventHandler Delegate

Represents the method that will handle the Click, MouseDown and related events on System.Windows.Forms.HtmlDocument, System.Windows.Forms.HtmlElement, and System.Windows.Forms.HtmlWindow.

Syntax

public delegate void HtmlElementEventHandler (object sender, HtmlElementEventArgs e)

Parameters

sender
Documentation for this section has not yet been entered.
e
Documentation for this section has not yet been entered.

Remarks

When you create a System.Windows.Forms.HtmlElementEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see Events and Delegates.

You must wait until an HTML document has finished loading in order to attach an event handler to the document. If you attempt to attach a handler before loading has completed, the attach operation may fail. The best place to attach event handlers in a new document is in the WebBrowser.DocumentCompleted event handler for the System.Windows.Forms.WebBrowser control.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0