110,545
社区成员
发帖
与我相关
我的任务
分享
using System.Windows.Forms;
class Test : Form
{
static void Main()
{
Application.Run(new Test());
}
Test()
{
Button button1 = new Button();
button1.Parent = this;
button1.Text = "Click Me!";
button1.Click += delegate { MessageBox.Show("Button is clicked!"); };
}
}