[英]Allow user to choose file/folder in C# WinForms app
How can I user to choose a file or a folder from within my forms app?用户如何从我的表单应用程序中选择文件或文件夹?
Is there not a built in component for it?没有内置组件吗?
There are a few depending on exactly what you need to do:有几个取决于您需要做什么:
您可以通过WindowsAPICodePack
包使用CommonOpenFileDialog
来选择文件和dialog.IsFolderPicker = true
以启用文件夹选择
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.