C#

using DotNetBrowser;
using DotNetBrowser.DOM;
using DotNetBrowser.Events;

...

Browser browser = BrowserFactory.Create();
browser.FinishLoadingFrameEvent += delegate(object sender, FinishLoadingEventArgs e)
{
    if (e.IsMainFrame)
    {
        DOMDocument document = e.Browser.GetDocument();
        DOMElement button = document.GetElementById("button-id");
        button.Children[0].NodeValue = "New Button Name";
    }
};

browser.LoadHTML("<html><body><button id='button-id'>Button</button></body></html>");

VB.NET

Imports DotNetBrowser
Imports DotNetBrowser.DOM
Imports DotNetBrowser.Events

'...

Dim browser As Browser = BrowserFactory.Create()
AddHandler browser.FinishLoadingFrameEvent, sub(ByVal sender As Object, ByVal e As FinishLoadingEventArgs)

    If e.IsMainFrame Then
        Dim document As DOMDocument = e.Browser.GetDocument()
        Dim button As DOMElement = document.GetElementById("button-id")
        button.Children(0).NodeValue = "New Button Name"
    End If
End sub

browser.LoadHTML("<html><body><button id='button-id'>Button</button></body></html>")