HtmlElement.RaiseEvent Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Causes the named event to call all registered event handlers.

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

public void RaiseEvent(
	string eventName


Type: System.String

The name of the event to raise.

This method is used to access HTML Document Object Model (DOM) events. It directly calls the IHTMLElement3::fireEvent method. For more information about how to use the DOM through the HtmlElement class, see Accessing Unexposed Members on the Managed HTML Document Object Model.

.NET Framework
Available since 2.0
Return to top