设置属性FileDialog.InitialDirectoryusing Microsoft.Win32; ... OpenFileDialog dlg = new OpenFileDialog();// Filter by Word Documents OR Excel Worksheets OR PowerPoint Presentations // OR Office Files // OR All Files dlg.Filter = "Word Documents|*.doc|Excel Worksheets|*.xls|PowerPoint Presentations|*.ppt" + "|Office Files|*.doc;*.xls;*.ppt" + "|All Files|*.*";dlg.ShowDialog();
那界面不用OpenfileDialog了?直接在后台写OpenfileDialog ... new OpenfileDialog 一个出来? 然后赋路径? 然后遍历?
...
OpenFileDialog dlg = new OpenFileDialog();// Filter by Word Documents OR Excel Worksheets OR PowerPoint Presentations
// OR Office Files
// OR All Files
dlg.Filter = "Word Documents|*.doc|Excel Worksheets|*.xls|PowerPoint Presentations|*.ppt" +
"|Office Files|*.doc;*.xls;*.ppt" +
"|All Files|*.*";dlg.ShowDialog();
不是本地目录啊。。
不是本地目录啊。。 嗯 专门的代码服务器目录
用folderBrowserDialog 这个控件怎么 用?能详细点嘛?
用folderBrowserDialog 这个控件怎么 用?能详细点嘛?
小伙子,你也太懒了吧,搜索一下也不肯,只管伸手,这样的习惯可不好。http://www.jb51.net/article/43827.htm
用folderBrowserDialog 这个控件怎么 用?能详细点嘛?
小伙子,你也太懒了吧,搜索一下也不肯,只管伸手,这样的习惯可不好。http://www.jb51.net/article/43827.htm呵呵 让你见笑了。 我只是有点着急。 一定改