private void button1_Click_1(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "Excel文件(*.xls)|*.xls";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
textBox2.Text = openFileDialog1.FileName;
}
}
c#读取文件路径并保存在textBox2中
最新推荐文章于 2023-07-21 14:53:09 发布