我爱Aspx >> Asp.Net >> 用Visual C#动态生成组件this.btnAdd.TabIndex = 0 ;
this.btnAdd.Text = "生成按钮!" ;
this.btnAdd.Click += new System.EventHandler ( this.btnAdd_Click ) ;
this.txtAdd.FlatStyle = FlatStyle.Popup ;
this.txtAdd.Location = new System.Drawing.Point ( 108 , 16 ) ;
this.txtAdd.Name = "txtAdd" ;
this.txtAdd.TabIndex = 1 ;
this.txtAdd.Text = "生成文本框!" ;
this.txtAdd.Click += new System.EventHandler ( this.txtAdd_Click ) ;
this.AutoScaleBaseSize = new System.Drawing.Size ( 5 , 13 ) ;
this.ClientSize = new System.Drawing.Size ( 292 , 273 ) ;
this.Controls.Add ( btnAdd ) ;
this.Controls.Add ( txtAdd ) ;
this.Name = "Form1" ;
this.Text = "在Visual C#中如何动态产生组件!" ;
this.ResumeLayout ( false ) ;
}
static void Main ( )
{
Application.Run ( new Form1 ( ) ) ;
Ҷƪл˵?
C#书写规范[05-20]
用 C# 编写一个停放在任务栏上的..[05-20]
Visual C#.Net 网络程序开发-Soc..[05-20]
C#中一些字符串操作的常用用法[05-20]
使用 Visual C# .NET 向 Excel 工..[05-20]
在C#中改变系统时间 && ..[05-20]
在ASP.NET(C#)中使用Oralce Obje..[05-20]
ASP.NET c# 文件上传[05-20]
C#+ASP.NET开发基于Web的RSS阅读..[05-20]
ASP.net 验证码(C#)[05-20]
web组件的通信---浅谈事件[05-20]
WMI使用技巧集[05-20]
利用SQLDMO备份还原SQL SERVER[05-20]
WMI在网络编程中的应用[05-20]
ASP.NET远程建立IIS虚拟主机并指..[05-20]
Real Player ActiveX Control Li..[05-20]
使用JS创建虚拟目录,并引导进入浏..[05-20]
ASP.NET远程建立IIS虚拟主机并指..[05-20]
用ASP.NET对IIS中的虚拟目录进行..[05-20]
用ASP.NET对IIS中的虚拟目录进行..[05-20]