对于 C# Forms 应用程序,我想允许 OpenFileDialog 返回 url 以及本地和网络文件名。我该如何设置它来做到这一点?
using (OpenFileDialog dlg = new OpenFileDialog())
{
dlg.Title = FormStrings.Framework_rdlAddFileTitle;
dlg.CheckFileExists = true;
dlg.DefaultExt = "rdlx";
dlg.Filter = @"RDL(X) files|*.rdlx;*.rdl|RDLX files|*.rdlx|RDL files)|*.rdl|All files|*.*";
dlg.Multiselect = false;
if (dlg.ShowDialog(GetParentHWnd(doc)) != DialogResult.OK)
return;