Option Explicit Option Strict Imports System Imports System.Windows.Forms Public Class MyForm Inherits Form Public Sub New() Me.Text = "Hello World" End Sub 'New <STAThread()> _ Public Shared Sub Main() Dim aform As New MyForm() Application.Run(aform) End Sub End Class