有时候需要在程序运行到一定时候或者某个事件之后需要动态生成控件
在C#下一般方式是:
private Button Db=new Button() ;
Db.Name="Dy_Button" //设定名称
Db.Location=new Point(100,200);//设定位置
。。。。//其他属性设置
//这里添加消息处理
Dpb.MouseClick += new EventHandler(this.pictureBox_MouseClick);
this.Controls.Add (