110,536
社区成员
发帖
与我相关
我的任务
分享
private void button1_Click_1(object sender, EventArgs e)
{
if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
{
this.textBox1.Text = this.openFileDialog1.FileName;
}
string dir = Directory.GetParent(textBox1.Text).ToString();//设置选择文件的路劲
FileStream fs = File.OpenRead(dir);
}