Questions tagged [folderbrowserdialog]

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

Prompts the user to select a folder.

Docs

280 questions
9
votes
2 answers

C# read folder (names) from directory

I have this code: string directory; FolderBrowserDialog fbd = new FolderBrowserDialog(); if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { directory = fbd.SelectedPath; …
moxmlb
  • 1,190
  • 3
  • 10
  • 18
9
votes
4 answers

DialogResult with FolderBrowserDialog in WPF

First time I'm implementing a FolderBrowserDialog in WPF and I'm not loving it one bit... Aside from the issues I had figuring out that Windows.Forms wasn't referenced in my project, now I'm having trouble trying to see what the DialogResult return…
Ortund
  • 8,095
  • 18
  • 71
  • 139
8
votes
2 answers

How to make Select Directory using React?

I need to upload all files from a folder to server. I'm trying to implement Select Directory window, and not Select file. The normal way like: Did not work for me, and showed Select File window. But…
LarryKing
  • 127
  • 1
  • 1
  • 7
8
votes
1 answer

WPF TreeView Items not selectable

I am currently writing an Folder Browser Dialog in WPF. For displaying the Tree I use an TreeView:
Bio42
  • 389
  • 3
  • 18
8
votes
1 answer

FolderBrowserDialog with input field

I'm not sure what to google here in order to explain what I wish to do, so I'll try here: I'm using both OpenFileDialog and FolderBrowserDialog in my code for browsing for files and directories respectively. When the dialogs open, the user gets only…
Idanis
  • 1,918
  • 6
  • 38
  • 69
7
votes
3 answers

Folder browse dialog with checkboxes?

I'm looking for the easiest solution to implement a folder browse dialog with checkboxes in front of the directories in my (C#) WinForms project. I saw this kind of dialog in Vista in the backup center. It was just like a normal Folder browse…
pbean
7
votes
2 answers

How to expand folder branch in Project Window Intellij IDEA?

Sometimes I close folder/package in Project Tool Window and then I should click every folder in it to open them . How to avoid this and open all folders/packages quickly?
7
votes
2 answers

IFileSaveDialog - choosing folders in Windows 7

In Vista, I have been using an IFileSaveDialog to let users pick a "save-as" folder. Users export a folder of images, say, and need to choose a new or existing target folder. Briefly, the code goes like this: IFileSaveDialog* dialog; //…
Michael Brewer-Davis
  • 14,018
  • 5
  • 37
  • 49
7
votes
4 answers

What is the most common way to create a folder selection dialog using Delphi?

There doesn't appear to be a simple component available to create a folder selection dialog in Delphi 2009, although a file selection dialog is provided by way of the TOpenDialog. What is the most common way to create a modern folder selection…
Rowan
  • 2,384
  • 2
  • 21
  • 22
6
votes
5 answers

Setting root folder for FolderBrowser

How do i Set the root folder for a folderdialog? My sample does not seem to work. (I checked that the folder exists) Dim FolderBrowserDialog1 As New FolderBrowserDialog FolderBrowserDialog1.RootFolder = "C:\VaultWorkspace\cadcampc\" If…
JefE
  • 137
  • 1
  • 2
  • 12
6
votes
3 answers

WinForms: Why do I get InvalidCastException when showing folder browser dialog?

I am randomly getting InvalidCastException when showing FolderBrowserDialog and also many clients have reported this. I have not been able to find anything relevant on the internet. Does anyone know what causes this/how to fix this? My code: …
Marek
  • 10,307
  • 8
  • 70
  • 106
5
votes
1 answer

Failed to set the specified COM apartment state

It seems that I really am not good with multithreaded applications. I am trying to open a FolderBrowserDialog, but I was getting an exception telling me: Current thread must be set to single thread apartment (STA) mode before OLE calls can be…
Daniel
  • 6,595
  • 9
  • 38
  • 70
5
votes
1 answer

C# OpenFileDialog Thread start but dialog not shown

I am trying to finish my static Prompt class to be able to call it from anywhere. But the problem is couldn't make the dialog show. I am already using [STAThread] and here is my code. public static string ShowFileDialog() { string selectedPath =…
Ahmet Can Güven
  • 5,392
  • 4
  • 38
  • 59
5
votes
3 answers

show text box in FolderBrowserDialog

how i can show textbox in FolderBrowserDialog like below image,
Kazem Fallahi
  • 87
  • 1
  • 6
5
votes
6 answers

How to use a FolderBrowserDialog from a WPF application with MVVM

I'm trying to use the FolderBrowserDialog from my WPF application - nothing fancy. I don't much care that it has the Windows Forms look to it. I found a question with a suitable answer (How to use a FolderBrowserDialog from a WPF application),…
David Work
  • 269
  • 1
  • 4
  • 13
1
2
3
18 19