弹出打开窗口

OpenFileDialog obj = new OpenFileDialog();
            if (obj.ShowDialog() == DialogResult.OK)
            {
                this.txtpath.Text = obj.FileName;
            }

弹出打开窗口,将地址保存this.txtpath.Text

 OpenFileDialog obj = new OpenFileDialog();
            if (obj.ShowDialog() == DialogResult.OK)
            {
                this.txtpath.Text = obj.FileName;
            }

你可能感兴趣的:(窗口)