Your best bet would be a Sub Main

Example:
VB Code:
  1. Module Module1
  2.    Public Sub Main()
  3.       Dim frm as new Form1
  4.       If something = True Then
  5.           Application.Run(frm)
  6.       Else
  7.          Something else
  8.       End If
  9.    End Sub
  10. End Module