To make the code editor the default editor, right click on the file in Solution Explorer, select "Open With", specify the editor & then choose "Set As Default".
There's also an attibute you can add to the top of your class, it's broken in VS2005 beta2 for C#, but should work in RC. Note you have to prefix with the full namespace for some reason to get it to work.
C# [System.ComponentModel.DesignerCategory("code")] public class Form1 : System.Windows.Forms.Form
VB <System.ComponentModel.DesignerCategory("code")> Public Class Form1
There's also an attibute you can add to the top of your class, it's broken in VS2005 beta2 for C#, but should work in RC. Note you have to prefix with the full namespace for some reason to get it to work.
ReplyDeleteC#
[System.ComponentModel.DesignerCategory("code")]
public class Form1 : System.Windows.Forms.Form
VB
<System.ComponentModel.DesignerCategory("code")> Public Class Form1