• λ我爱Aspx >> Asp.Net >> 用Visual C#动态生成组件
  • 用Visual C#动态生成组件

  • :未知  Դ:internet  :2007-5-20 16:40:30  ؼ: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 ( ) ) ;

    Ҷƪл˵?
  • һƪ创建记录文件类
    һƪweb组件的通信---浅谈事件