文件打开/保存对话框 [英] File Open/Save Dialog

查看:160
本文介绍了文件打开/保存对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用我自己的自定义视图来显示文件和文件夹,并使用搜索​​框跳转到特定的文件夹。在这种情况下,如何将消息发送到文件打开/保存对话框,强制执行,以改变当前显示的文件夹。

I am using my own Custom View to show the files and folders and also using a search box to jump to a specific folder. In that case How to send a message to File Open/Save dialog to enforce it to change the current displayed folder.

例如。如果对话框显示文件和当前显示文件夹的文件夹C:\\我希望有一个API(或任何一件code),以强制改变当前文件夹D:\\

e.g. If the dialog shows files and folders of current displaying folder "C:\", I want an API (or any piece of code) to enforce to change the current folder to "D:\"

推荐答案

设置<一个href=\"http://msdn.microsoft.com/en-us/library/system.windows.forms.filedialog.initialdirectory%28v=VS.100%29.aspx\"相对=nofollow> InitialDirectory 财产的任何路径

这篇关于文件打开/保存对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆