Form1.cs

using DotNetBrowser;
using DotNetBrowser.DOM;
using DotNetBrowser.DOM.Events;
using DotNetBrowser.Events;
using DotNetBrowser.WinForms;
using System;
using System.Windows.Forms;

namespace DOMEventsSample
{
    public partial class Form1 : Form
    {
        private Browser browser;
        public Form1()
        {
            InitializeComponent();

            browser = BrowserFactory.Create();
            BrowserView browserView = new WinFormsBrowserView(browser);

            this.Controls.Add((Control)browserView.GetComponent());

            DOMEventHandler domEvent = delegate(object sender, DOMEventArgs e)
            {
                DOMEventType eventType = e.Type;
                Console.Out.WriteLine("handleEvent = " + eventType);
            };

            browserView.Browser.FinishLoadingFrameEvent += delegate(object sender, FinishLoadingEventArgs e)
            {
                if (e.IsMainFrame)
                {
                    DOMDocument document = e.Browser.GetDocument();
                    //Here Google search buttons are found by names. You can use other criteria to find them.
                    var element = document.GetElementByName("btnK");
                    var element2 = document.GetElementByName("btnG");

                    element.AddEventListener(DOMEventType.OnClick,domEvent, false);
                    element2.AddEventListener(DOMEventType.OnClick, domEvent, false);
                }
            };

            browserView.Browser.LoadURL("http://www.google.com");
        }
    }
}