110,534
社区成员
发帖
与我相关
我的任务
分享
Button btn = new Button();
btn.Location = new Point(100,150);
btn.Size = new Size(100,50);
btn.Text = "Button Sample";
this.Controls.Add(btn);
btn.Clicked += delegate
{
MessageBox.Show("按钮,自己定义的,按下了");
};