The code below creates a button control in the main browser window absolute position in the top left of the screen. Whilst it doesn't do anything in particular it does show the ease of creating controls.
// Create a button
var buttonTest = System.CreateObject("System.Controls.Button");
buttonTest.Initialize();
buttonTest.SetText("My Button");
The code below creates a fully featured window that can be resized and dragged around the screen. Whilst again this doesn't do anything useful it shows how a full line of code can deliver a lot of functionality
// Create a window
var windowTest = System.CreateObject("System.Controls.Window");
windowTest.Initialize();
windowTest.SetText("My Window Title");