Shared Sub Main() Form1.ShowDialog() End Sub Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Static Form1 As New Form1 Me.Dispose() Form1.ShowDialog() End Sub