Purpose of form1.designer.cs and form1.resx

前端 未结 3 710
没有蜡笔的小新
没有蜡笔的小新 2020-12-19 07:33

I\'ve been doing vb.net for a while and I don\'t understand the purpose of these two files:

  • form1.designer.cs
  • form1.resx

Can someone pl

3条回答
  •  眼角桃花
    2020-12-19 08:09

    form1.designer.cs is a file that is auto-generated by the IDE (e.g. Visual Studio). It keeps all the WinForms related initialization elements separate from the "clean" code-behind form1.cs.

    Note that form1.designer.cs is combined with code from form1.cs by the compiler, because the classes are listed as partial, and thus are two parts of the same class definition.

提交回复
热议问题