Questions tagged [folderbrowserdialog]

FolderBrowserDialog is a class in the System.Windows.Forms.CommonDialog namespace

Prompts the user to select a folder.

Docs

280 questions
0
votes
1 answer

Create an error message for DirectoryNotFoundException in C# instead of crashing

I have a program that uses a folderBrowser to locate a file but adds some pre-existing folders to the end of it. Example: System.IO.DirectoryInfo directoryName = new DirectoryInfo(@folderBrowser.SelectedPath + "/folder1/folder2/"); But if someone…
Pyroglyph
  • 164
  • 5
  • 14
0
votes
0 answers

How to take full path of a folder with a dialog in .NET MVC or JavaScript

i couldn't find any examples about folder dialog in mvc all of them in standart .net. Is there a way to take full path of a folder with a dialog. No need to upload or select files inside that folder. I just need path.
0
votes
0 answers

No folder Access

I want make a program with C# for scan a folder after the scan i want see how many files and folders in the selected rootfolder. But if i take a folder like C:\ or program files orso i get a access error, Like access denied for folder…
0
votes
3 answers

Folder chooser dialog from a Windows batch script

How do I implement the following code: @if (@a==@b) @end /* :: fchooser2.bat :: batch portion @echo off setlocal for /f "delims=" %%I in ('cscript /nologo /e:jscript "%~f0"') do ( echo You chose %%I ) goto :EOF …
GOZARCK
  • 3
  • 1
  • 3
0
votes
1 answer

FolderBrowserDialog apears in back in web application

I'm using FolderBrowserDialog on my web application in c#. It is working perfectly except one issue: the FolderBrowserDialog open in the back of the web application and not in front of it. The code is: public void BrowseFolderButton_Click(object…
0
votes
1 answer

folder path input in installer c# visual studio 2010

What i need is the user to be able pick not only the installation path, but also a path where they want to put configuration files for my program. At the moment i have a setup project in the same solution as the actual program (the program is an…
0
votes
1 answer

C#. Using all files in a folder, and writing a different string in a specific line

I need your help. The thing is that my code works, it reads all the files in a folder which are 96 text files and saves the path of each file. I then take each file and change the line number 32 in the text file which is "Treatment";"1"; nr =…
0
votes
0 answers

FolderBrowserDialog does not show network location in windows 8

On Windows 8 when we use FolderBrowserDialog, the network drives are not displayed. It works fine if we run the same program on Windows 7 or windows xp. But in openfiledialog both these network location folder are visible. I want added network…
IT researcher
  • 3,274
  • 17
  • 79
  • 143
0
votes
1 answer

Not able to Print the folder path in EditBox- MFC

I am using the following function ..instead of CFolderDialog.. to get the folder path...check my code below....am getting a run time error when i try toprint the folder path name in a edit box.. void CSelfExtractorUIDlg::OnBnClickedButton1() …
kiddo
  • 1,596
  • 7
  • 31
  • 60
0
votes
1 answer

How to get the FolderPath in MFC application

I am using visual studio 2008...I am tryin to get the folder path for my output file in my design ...I know there is a class called CFolderDialog ..but its not working in my pgm..should I include any header file inorder to get that..if YES,can…
kiddo
  • 1,596
  • 7
  • 31
  • 60
0
votes
1 answer

FolderBrowserDialog not found - WPF

The title states it all, I even tried adding using System.Windows.Forms but it still tells me that FolderBrowserDialog is not found. Anything I can do? Any other way I can browse for directories?
mnm
  • 101
  • 11
0
votes
0 answers

Set FolderBrowserDialog to show directly the set filepath folder

The FolderBrowserDialog opens the directory tree to the folder set as folderpath and that folder is selected (marked/surrounded) but the view in the FolderBrowserDialog is at the top of the directory tree and I have to scroll down to the selected…
Syspect
  • 921
  • 7
  • 22
  • 50
0
votes
0 answers

folderbrowserdialog xp illegal characters

When calling FolderBrowserDialog from the Forms library in a WPF/C# user control, Windows XP displays invalid characters. Code: FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.Description = "Save Parts Template To:"; if…
Cyphryx
  • 104
  • 1
  • 12
0
votes
1 answer

Textbox text not parsing with spaces in VB.NET

I have a textbox that will be populated with a directory structure (for example, C:\Program Files\Visual Basic). I'm trying to use the textbox.text object in another variable, but when the path includes spaces the information will cut off. Here is…
Sean Long
  • 2,163
  • 9
  • 30
  • 49
0
votes
1 answer

Windows Forms FolderBrowserDialog hangs the application

With winforms, when I right click on a folder or try to delete a folder within the FolderBrowserDialog the window becomes irresponsive and I've to force-close it. Here's the code: private void btnOpenFileDialog_Click(object sender, EventArgs e) { …
misleadingTitle
  • 657
  • 6
  • 21