This code works for me. If it doesn't for you then that's just wierd!
VB Code:
  1. Shared Sub Main()
  2.         Application.EnableVisualStyles()
  3.         Application.DoEvents()
  4.         Application.Run(New Form1)
  5.     End Sub