111,130
社区成员
发帖
与我相关
我的任务
分享using System;
using System.Windows.Forms;
class Form1 : Form
{
Form1()
{
Button btn = new Button();
btn.Parent = this;
btn.Text = "打开文件";
btn.Click += delegate { new OpenFileDialog().ShowDialog(); };
}
static void Main()
{
Application.Run(new Form1());
}
}