title: Disable themed Window Border
body: <p>In Windows XP's CMD, the Luna border isn't applied to it. <a href="http://wedowebstuff.info/uploads/1272861285CMDNotThemed%5D.png" rel="nofollow noreferrer">alt text http://wedowebstuff.info/uploads/1272861285CMDNotThemed%5D.png</a></p>
  
  <p>Is it possible to do it in a similar way in Visual C# Winforms, for an application? I just wonder how it's done, of course I am not going to force any of my applications to not use the beautiful XP/Aero theme :P</p>
  
  <p>Thanks.</p>
  
  <p><strong>edit</strong>: Adding a note to this after many months. The Luna border isn't applied to CMD due to the fact that it is technically a 16-bit (old) application, so it does not use the standard Windows theming system (nor windowing, as demonstrated by the fact that it cannot be maximized). Applications like this are common in 32-bit windows (16-bit apps were removed in x64 Windows builds), for example, <em>sysedit</em>. The fact that it has a properly themed window border (but note, not the inside controls) in Vista/7, is due to the fact that Aero/Desktop Window Manager (DWM) overrides all window borders and renders them. If we switch to the Basic/Classic theme, that inconsistency continues.</p>
  
  <p>The x64 cmd.exe doesn't have this problem. :)</p>