title: Windows class name is not valid error - VS 2008/C#
body: <p>I created a form application with 1 button and 1 text box to see if i could recreate this error and i did. Upon compiling and trying to run with F5 i keep getting this error</p>
  
  <pre><code>     at System.Windows.Forms.NativeWindow.WindowClass.RegisterClass()
     at System.Windows.Forms.NativeWindow.WindowClass.Create(String className, Int32 classStyle)
     at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
     at System.Windows.Forms.Control.CreateHandle()
     at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
     at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
     at System.Windows.Forms.Control.CreateControl()
     at System.Windows.Forms.Control.WmShowWindow(Message&amp; m)
     at System.Windows.Forms.Control.WndProc(Message&amp; m)
     at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
     at System.Windows.Forms.ContainerControl.WndProc(Message&amp; m)
     at System.Windows.Forms.Form.WmShowWindow(Message&amp; m)
     at System.Windows.Forms.Form.WndProc(Message&amp; m)
     at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
     at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
  </code></pre>
  
  <p>This is my main:</p>
  
  <pre><code>static void Main()
      {
          Application.EnableVisualStyles();
          Application.SetCompatibleTextRenderingDefault(false);
          **Application.Run(new Form1());**
      }
  </code></pre>
  
  <p>Error happens on the line in BOLD</p>