public partial class Form1 : Form
{
public string myml;
public Form1()
{
InitializeComponent();
} private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "所有文件|*.*|执行程序(*.exe)|*.exe"; if (ofd.ShowDialog() == DialogResult.OK)
{
txtPath.Text = ofd.FileName;
myml = ofd.FileName;
}
}
}
{
public string myml;
public Form1()
{
InitializeComponent();
} private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "所有文件|*.*|执行程序(*.exe)|*.exe"; if (ofd.ShowDialog() == DialogResult.OK)
{
txtPath.Text = ofd.FileName;
myml = ofd.FileName;
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货