title: How to change a console application to a windows form application?
body: <p>I had been developing a console application, until our project needed a fancy UI to go with it, so we decided to change the project type to windows form application. We tried putting the code below in our entry point:</p>
  
  <pre><code>        Application.EnableVisualStyles();
          Application.SetCompatibleTextRenderingDefault(false);
          Application.Run(new UI());
  </code></pre>
  
  <p>It kind of works, but the original console window is still there. </p>
  
  <p>I've googled out some useful infos like <a href="http://social.msdn.microsoft.com/Forums/eu/csharpgeneral/thread/ea8b0fd5-a660-46f9-9dcb-d525cc22dcbd">this</a> one, but what all they do is essentially killing the window after it has been created, not tackling the root of the problem. So is there any more elegant way to do this?</p>