摘要: 一.OpenFileDialogOpenFileDialog dlg= new OpenFileDialog();1.对话框标题dlg.Title = "Open File";2.指定目录默认情况下,对话框将打开用户在上一次运行应用程序时打开的目录。设置InitialDirectory属性可以改变这种设置。注意:不要在应用程序中使用硬编码的目录字符串,因为该目录可能在用户的系统上不存在。string dir = Enviroment.GetFloderPath(Enviroment.SpecialFolder.Template);dlg.InitialDirectory = 阅读全文
posted @ 2013-10-18 13:32 夜曲984 阅读(223) 评论(0) 推荐(0) 编辑