Imports System.Windows.Forms Class Foo Public Sub Test() MessageBox.Show( "Hello world from VB!" ) End Sub End Class