(WPF) 文件和文件夹选择对话框。
2014-04-15 17:01
183 查看
点击button,选择一个excel文件,并将文件名显示在textbox上。
private void btnSelectErrorTableFile_Click(object sender, RoutedEventArgs e) { var openFileDialog = new Microsoft.Win32.OpenFileDialog() { Filter = "Excel Files (*.xlsx)|*.xlsx" }; var result = openFileDialog.ShowDialog(); if (result == true) { this.tbErrorCodeTableFile.Text = openFileDialog.FileName; } }
相关文章推荐
- eclipse插件开发的发布过程中遇到的问题与解决方法总结
- 第六周作业
- 2014-第八周项目二-时间类的运算符重载
- android color 属性
- Activity-LauncherMode配置(4)
- centos6.3 64位yum安装配置bind
- div ul 宽度
- 称重小白鼠
- win8下openssl终于编译成功
- Linux基础入门及系统管理01-bash脚本编程之三整数测试及算术运算18
- 纯CSS实现鼠标移动切换图片示例
- Got a packet bigger than ‘max_allowed_packet’ bytes的解决方法
- android 启动相机拍照并发送微博。
- EOJ 1855 Solution Report - Expedition
- 设计模式--中介者模式Mediator(行为型)
- easyui validatebox 验证集合
- window下线程同步之(Event Objects(事件))
- 冬天的秘密
- zoj 3635 Cinema in Akiba 树状数组求第K大
- phonegap实现视频上传后显示播放