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;
            }

posted on 2011-02-18 16:00  高兴happy  阅读(193)  评论(0编辑  收藏  举报