C#中RestoreDirectory属性

来源:互联网 发布:中山大学网络缴费 编辑:程序博客网 时间:2024/06/07 07:50
RestoreDirectory是控制当前程序中的System.Environment.CurrentDirectory的,也就是,当属性设置为true时,System.Environment.CurrentDirectory永远是程序从中启动的文件夹目录;而设置为false是,则每次使用OpenFileDialog选择完文件后,System.Environment.CurrentDirectory会变成最后一次打开文件的目录(http://topic.csdn.net/u/20080722/00/7ab47aba-986e-4364-a187-4c201e466ba9.html)
0 0
原创粉丝点击