folderBrowserDialog控件,原来好的,现在出了个怪问题,不知道原因。
就是showdialog()以后出来的选择文件夹的系统小窗口中文件夹的那个树不显示出来。不知道为什么?原来是好的。

解决方案 »

  1.   

    代码没什么花样的
    private void btnSearchFolder_Click(object sender, System.EventArgs e)
    {
    folderBrowserDialog1.SelectedPath = txtSyokiPath.Text.Trim().ToLower();
    if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
    {
    txtSyokiPath.Text = folderBrowserDialog1.SelectedPath;
    }
    }如果我重新建立一个工程就没有这个问题了。而且我以前同样的代码也好过的。
      

  2.   

    [STAThread]
    public static void Main()在你的Main函数上加上这个就正常显示了.
    think this is a known bug for Win 2000
      

  3.   

    遇到了相同的问题,sniperfox(飞翔的心) 的答案是正确的,非常感谢!!!
      

  4.   

    这是Windows外壳程序的一个已知问题
    参考http://support.microsoft.com/kb/287087
      

  5.   

    [STAThread]
    public static void Main()在你的Main函数上加上这个就正常显示了.
    think this is a known bug for Win 2000
      

  6.   

    欢迎加入C#和Java技术交流群:14518483
    群建立不久,还望大家多多支持