How to clear a FileDialog's dropdown history?

和自甴很熟 提交于 2019-12-24 12:26:09

问题


It seems that my application is remembering previously saved/opened files. How can clear the recent history and prevent the application from keeping track of saved/opened files in the future?

I want to be able to do this from the application, without requiring client involvement.

I suppose that the information is saved to the registry.


回答1:


Where is recently opened files

And then delete them: How to delete a registry value in C#




回答2:


just: openfiledialog.FileName = "";



来源:https://stackoverflow.com/questions/12296229/how-to-clear-a-filedialogs-dropdown-history

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!