Esempio n. 1
0
 private string GetNetworkFolders(FolderBrowserDialog oFolderBrowserDialog)
 {
     Type type = oFolderBrowserDialog.GetType();
     FieldInfo fieldInfo = type.GetField("rootFolder", BindingFlags.NonPublic | BindingFlags.Instance);
     fieldInfo.SetValue(oFolderBrowserDialog, 18);
     if (oFolderBrowserDialog.ShowDialog() == DialogResult.OK)
     {
         return oFolderBrowserDialog.SelectedPath.ToString();
     }
     else
     {
         return "";
     }
 }