如题,这个按钮的事件怎么写?我想要弹出一个路径为“c:\\a\b”这样的文件夹。

解决方案 »

  1.   

     System.Diagnostics.Process.Start("c:\\a\b");
      

  2.   

    FolderBrowser 然后设置一个默认路径
      

  3.   


            [DllImport("Shell32.dll")]
            private static extern int ShellExecute(
                IntPtr hwnd,
                string lpOperation,      //多为"open"
                string lpFile,           //文件名称
                string lpParameters,
                string lpDirectory,      //文件路径
                int nShowCmd
                );
            private void button10_Click(object sender, EventArgs e)
            {
                ShellExecute(this.Handle, "open", "explorer", "c:\\Intel", null, 1);
            }