winform有什么控件可以实现,打开我的电脑后的那个地方址栏,即可以选择我的电脑里的文件夹,也可以手动输入某个文件夹的地址?

解决方案 »

  1.   

    process.start(".")
    sendkeys.send("{F4}")
      

  2.   


    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;namespace WindowsApplication1
    {
    public partial class SelectFolder : Form
    {
    public SelectFolder()
    {
    InitializeComponent();
    }
    private void btnSelectPath_Click(object sender, EventArgs e) //弹出一个选择目录的对话框
    {
    FolderBrowserDialog path = new FolderBrowserDialog();
    path.ShowDialog();
    this.txtPath.Text = path.SelectedPath;
    }private void btnSelectFile_Click(object sender, EventArgs e) //弹出一个选择文件的对话框
    {
    OpenFileDialog file = new OpenFileDialog();
    file.ShowDialog();
    this.txtFile.Text = file.SafeFileName;
    }}
    }如果是你想要的 ,感谢一下键盘人生大哥吧。呵呵
    http://blog.sina.com.cn/s/blog_6301fd6a0100gt56.html
    新年快乐
      

  3.   

    FolderBrowserDialog 
    openfiledialog
    folderBrowserDialog1.Description = "选择存储目录 "  
    folderBrowserDialog1.ShowNewFolderButton = true;  
    folderBrowserDialog1.RootFolder = Environment.SpecialFolder.Desktop;  
      
    process.start(路径)
      

  4.   

    使用Process.Start(“路径”)之前需要引用(using )System.Diagnostics;