正在加载图片...
怎样使用partial /Form1.Designer.cs namespace MyForm 运行时 { 合到一起 partial class Form1 组成一个窗体文件 {l. private void InitializeComponent() ∥VS自动生成的代码 /Form1.cs this.ShowlnTaskbar false; namespace MyForm this.Name "Form1"; this.Text ="Form1"; public partial class Form1 Form this.TopMost true; public Form1() } InitializeComponent(); ∥我们编写的代码 1414 程序员编写的代码 VS自动生成的代码 // Form1.Designer.cs namespace MyForm { partial class Form1 { //. private void InitializeComponent() { // VS自动生成的代码 this.ShowInTaskbar = false; this.Name = "Form1"; this.Text = "Form1"; this.TopMost = true; } } } 运行时 合到一起 组成一个窗体文件 怎样使用partial // Form1.cs namespace MyForm { public partial class Form1 : Form { public Form1() { InitializeComponent(); } // 我们编写的代码 } }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有