Questions tagged [folderbrowserdialog]

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

Prompts the user to select a folder.

Docs

280 questions
3
votes
1 answer

Copy all files from a directory without creating subdirectories

I am trying to take a directory and create a new directory in TEMP, that contains all the files in the original directory, but not create additional sub-directories. Here is what I have so…
user3483203
  • 50,081
  • 9
  • 65
  • 94
3
votes
3 answers

SHBrowseForFolder, But With Textbox to Navigate

I found all the code I need to make SHBrowseForFolder work in my application. But I hate that it forces you to do everything in the little folder window, without a text box to navigate by typing. In Windows, I know I commonly see a different folder…
ErikE
  • 48,881
  • 23
  • 151
  • 196
3
votes
2 answers

How to Redraw or Refresh a screen

I am working on a wpf application. Here I need to use System.Windows.Forms.FolderBrowserDialog in my Wpf application. System.Windows.Forms.FolderBrowserDialog openFolderBrowser = new System.Windows.Forms.FolderBrowserDialog(); …
viky
  • 17,275
  • 13
  • 71
  • 90
3
votes
3 answers

VistaFolderBrowserDialog does not start with the correct folder

I would like to use a Folder Browse Dialog for WPF, but there does not seem to be such an essential class for WPF. Some recommend to use System.Windows.Forms.FolderBrowserDialog but this is a really awful dialog. I tried…
juergen d
  • 201,996
  • 37
  • 293
  • 362
3
votes
3 answers

How do I present an open folder selection dialog in Perl?

How do I open folder selection dialog in Perl?
Greg
  • 41
  • 1
  • 2
3
votes
1 answer

Is it possible to use non-special folder as a FolderBrowserDialog's root folder?

FolderBrowserDialog.RootFolder Property is restricted to only special folder defined in the Environment.SpecialFolder enumerator. However in my applciation, we need to show this dialog, but the root path needs to be configurable, and is normally a…
Louis Rhys
  • 34,517
  • 56
  • 153
  • 221
3
votes
2 answers

How do I add an edit box to MFC CFolderDialog ("browse for folder" dialog)?

I currently have a CFolderDialog class that is used in my CDocManagerEx class for handling file operations as follows: alt text http://img268.yfrog.com/img268/9271/filedialog.png I don't know if I need to show the method implementation of this class…
stanigator
  • 10,768
  • 34
  • 94
  • 129
3
votes
1 answer

FolderBrowserDialog C# SelectedPath always displayed at bottom

im opening a FolderBrowserDialog the following way: FolderBrowserDialog fbd = new FolderBrowserDialog(); fbd.Description = desc; fbd.SelectedPath = defaultPath; fbd.ShowNewFolderButton = showNewFolderButton; …
SLimke
  • 291
  • 1
  • 3
  • 11
2
votes
2 answers

Qt - Selecting multiple folders/directories using a dialog

I want to achieve something like the following: Where I can select multiple folders across multiple drives and retrieve the folder paths of those selected. Qt only has a crude multi-folder selection feature, but it does not support selected…
nf313743
  • 4,129
  • 8
  • 48
  • 63
2
votes
2 answers

get exception when show System.Windows.Forms.FolderBrowserDialog in wpf

I tried to show folderbrowserdialog in wpf but I got this exception Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This…
kartal
  • 17,436
  • 34
  • 100
  • 145
2
votes
2 answers

Restricted FolderBrowserDialog, recommended solution

We want to prevent the user from doing anything except selecting a folder. We don't want to allow him to delete files/folders, rename them, access the context menu, etc. But we can't override anything since FolderBrowserDialog is sealed. We googled…
dario_ramos
  • 7,118
  • 9
  • 61
  • 108
2
votes
0 answers

Custom OpenFileDialog to browse for folders but show also the files

I want to show a dialog (like as OpenFileDialog) to browse for folders and also the files. My windows-forms app is to auto-rename image files in a folder (and optionally all sub folders in it). When user want to select the path, he or she may choose…
S.Serpooshan
  • 7,608
  • 4
  • 33
  • 61
2
votes
2 answers

How can I use the Browse for Folder dialog from a WPF app on Windows Server Core?

I've tried using the FolderBrowserDialog and that seems to work on my development machine. However, this is not supported on a Windows 2008 R2 Server Core. I tried running this code anyway - the dialog appears, but the main display pane is not…
2
votes
2 answers

C# threading a FolderBrowserDialog

Im trying to use the FolderBrowserDialog to select a folder in C#. At first I got a Thread exception, so I googled what was wrong and fixed that but now im stuck at a nother problem. I whant to know when a folder has been selected. This is what i'v…
Marthin
  • 6,413
  • 15
  • 58
  • 95
2
votes
1 answer

Get network path not drive letter from FolderBrowserDialog

I have a winform with a FolderBrowserDialog to choose a folder from a network drive. The issue is that it returns the drive letter (X:\Folder...) rather than the network path (\\Network\Projects\Folder...). How can I get the network path?
Programmer
  • 459
  • 5
  • 20