Imports System.windows.forms Module module1 Sub Main() MessageBox.Show("This is the modules's Messagebox.Show call.", "Module MessageBox") ' MsgBox("This is the modules's MsgBox call.", MsgBoxStyle.Information, "Module MsgBox Function") Dim MsgTest As New MsgTest End Sub End Module Public Class MsgTest Inherits System.Windows.Forms.Form Public Sub New() MessageBox.Show(Me, "This is the form's Messagebox.Show call.", "Form MessageBox") ' MsgBox("This is the form's MsgBox call.", MsgBoxStyle.Information, "Form MsgBox") End Sub End Class