winform有什么控件可以实现,打开我的电脑后的那个地方址栏,即可以选择我的电脑里的文件夹,也可以手动输入某个文件夹的地址?
解决方案 »
- 影响已经Dock==Fill的窗体大小的因素还能有哪些(除了父容器大小)
- 如何实现ping命令 并能获取他的返回值
- 用什么代码代替下面代码并降低对CPU的占用率
- 求WPF快速学习书籍或方法
- 求助关于bottonbar控件的 item 右键菜单关联问题?
- 3月1号是我的生日,散分!另外3G手机的春风做起,作为程序员的我们应做些什么样的准备??
- Novell.MonoDroid.Common.targets(821,3): error MSB6006: “java”已退出,代码为 1。
- TCP抓包问题
- ■■■一个关于windows服务启动外部程序的问题,折磨了我很久
- 请问谁有 校验位X采用UPU通用的"mod11"计算方式 的C#代码实现?
- 字符转换
- mac os 下monodevelop中文乱码
sendkeys.send("{F4}")
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
新年快乐
openfiledialog
folderBrowserDialog1.Description = "选择存储目录 "
folderBrowserDialog1.ShowNewFolderButton = true;
folderBrowserDialog1.RootFolder = Environment.SpecialFolder.Desktop;
process.start(路径)