如题,设置按钮打开磁盘浏览器来保存文档,下面是我的代码,之前试过能用,可是后来调试运行,点击按钮程序就死了,请问问题出在哪?或者还有有没有其他的方法来实现这个功能。 private void button1_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog folderBrowerDialog1 = new FolderBrowserDialog();
            if (folderBrowerDialog1.ShowDialog() == DialogResult.OK)
            {
                strpath = folderBrowerDialog1.SelectedPath;
                textBox1.Text = strpath;
            }
        }