Imports System Imports System.Drawing Imports System.Windows.Forms Public Class HelloLabel Inherits Form Private lblHello As Label 'Run the application Public Shared Sub Main() Application.Run( New HelloLabel() ) End Sub Public Sub New() MyBase.New() Me.Text = "" lblHello = New Label() With lblHello .Location = New Point( 24, 16 ) .Size = New Size( 150, 24 ) .Font = New Font( "MS Sans Serif", 20 ) .Text = "Hello Mum!" .TextAlign = ContentAlignment.MiddleCenter End With Controls.Add(lblHello) End Sub End Class