Press F5 to launch your form and interact with your Visual Basic code.
Drag controls from the toolbox, edit their properties, and double-click a control to create its VB event handler. Press F5 to run.
VB.NET event handlers and classic Control_Click names; variables; Sub and Function procedures; If / ElseIf / Else; For / Next; While; arithmetic, comparisons, and strings.
Control_Click
Text, Checked, Value, Enabled, Visible, Items.Add / Remove / Clear, SelectedIndex, Focus(), Me.Close(), MsgBox, and Debug.Print work. Helpers include Val, CStr, CInt, CDbl, Len, Trim, UCase, LCase, and IsNumeric.
Text
Checked
Value
Enabled
Visible
Items.Add / Remove / Clear
SelectedIndex
Focus()
Me.Close()
MsgBox
Debug.Print
Val
CStr
CInt
CDbl
Len
Trim
UCase
LCase
IsNumeric
Export a ZIP with your VB code, generated designer, and a .NET 8 Windows Forms project. Open the .vbproj in Visual Studio with the .NET desktop workload, or run dotnet run with the .NET 8 SDK on Windows.
.vbproj
dotnet run
The browser runs a supported VB subset, not the Windows CLR. Native libraries, databases, files, timers, multiple forms, and full VB6 project imports require a desktop environment. Unsupported code is reported in Output. MsgBox displays a browser dialog and returns OK immediately; execution continues.
Windows Forms documentation ↗