Disable designer in Visual Studio?

前端 未结 6 888
小蘑菇
小蘑菇 2020-12-08 19:44

I\'m using Visual C# Express to write Windows Form applications, and call me old school, but I don\'t like the designer. It is a nuisance and pollutes my project with lots o

6条回答
  •  粉色の甜心
    2020-12-08 20:29

    If you don't want to use the designer, then don't use it ?

    You can create a new form from scratch, without the designer generating any code by creating a new empty class, and let the class inherit from System.Windows.Forms.Form

    Then, VS.NET will probably still indicate that your class is a Form, and you can still open it up in the designer if you want. (And drop controls on it).

提交回复
热议问题