对于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;