openfiledialog control locks folder
来源:互联网 发布:淘宝网禁止出售中药材 编辑:程序博客网 时间:2024/06/11 11:17
XP下在打开OpenFileDialog后,不能修改目录的名称,提示 "The action can't be completed because the folder is open in another program. Close the folder and try again."
解决方法:
var dlg = new OpenFileDialog;
dlg.RestoreDirectory = true;
if (dlg.ShowDialog(this) == DialogResult.OK)
{
try
{Stream fileStream = dlg.OpenFile();
fileStream.Close();
}
catch {}
}
- openfiledialog control locks folder
- openfiledialog
- openfileDialog
- OpenFileDialog
- openFileDialog
- Set Access Control to File/Folder (ACL)
- 解决SVN: Folder already under version control
- ASP.NET 2.0 C# Generics List Collection Folder Control
- How to assign control right to specific folder
- folder
- FOLDER
- C# OpenFileDialog
- c# OpenFileDialog
- c# OpenFileDialog
- OpenFileDialog类
- 控件openFileDialog
- 自定义OpenFileDialog
- c# OpenFileDialog
- 卷七、七言乐府
- 小小计算器
- nginx负载均衡 tomcat集群 memcache共享session
- php调用C函数时如何使用zend_parse_parameters
- smarty的安装与配置
- openfiledialog control locks folder
- DIV+CSS中标签ul ol li dl dt dd用法
- 一个关于远程调用方式的场景
- 框架网页中如何编写前进后退代码
- 塔式、机架式和刀片服务器区别
- Linux(centos/fedora/redhat/ubuntu....)下如何安装rpm,deb文件,如何解压,编译,安装*.tar.gz文件
- html中dl、dt、dd标记的使用实现菜单显示|隐藏
- robots的几种作用
- VCS 生成代码覆盖率