Assembly: System.Windows.Forms (in system.windows.forms.dll)
The name of the event you want to handle.
The managed code that handles the event.
The Managed Document Object Model (DOM) exposes only a select number of events. Most of the unexposed events are only defined for specific types of elements; such as the submit event, which is valid only on FORM elements. Use AttachEventHandler to add an event handler to these unexposed events.
You should not attach an event to the document or one of its objects until the document has completed loading. The earliest you should call this method is in the DocumentCompleted event of the WebBrowser control.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.