Class Application Private Sub Application_Startup(sender As Object, e As StartupEventArgs) ' Create the window Dim window As New Window1 ' Open the window window.Show() End Sub End Class