Questions tagged [folderbrowserdialog]

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

Prompts the user to select a folder.

Docs

280 questions
4
votes
3 answers

FolderBrowserDialog hangs in .Net installer project

I wrote a tool that should be called as part of a .Net installer project. It should ask the user for a directory and then update my config. I use the following code to show the file-chooser dlg: { FolderBrowserDialog dlg = new…
Mario The Spoon
  • 4,799
  • 1
  • 24
  • 36
4
votes
2 answers

Allowing IFileOpenDialog to pick a folder that doesn't exist yet

I'm trying to create a dialog to select a new folder to save files into. The IFileOpenDialog class works great except that it won't allow a new folder to be picked. I.e. "Folder: C:\existings\new-folder" in the bottom of the dialog pops up the…
Luke Quinane
  • 16,447
  • 13
  • 69
  • 88
4
votes
3 answers

FolderBrowserDialog in wpf c#

I am using System.Windows; and System.Windows.Controls; so I can't use System.Windows.Forms; because there is a lot of controls like messagebox and list box...etc are common between them is there another solution to get folderbrowserdialog without…
kartal
  • 17,436
  • 34
  • 100
  • 145
4
votes
3 answers

Using FolderBrowserDialog on a Removable Device / Removable storage

I'm working on a simple copy tool to copy files off digital cameras. I've written the file copy code, I've got everything hooked up nicely. The issue I have seems to be with the FolderBrowserDialog. In Vista (I haven't checked XP yet), I can browse…
NekoJoe
  • 183
  • 2
  • 9
4
votes
2 answers

Disable Right click in FolderBrowserDialog dialog box - wpf?

System.Windows.Forms.FolderBrowserDialog dlg = new FolderBrowserDialog(); HwndSource source = PresentationSource.FromVisual(this) as HwndSource; System.Windows.Forms.IWin32Window win = new OldWindow(source.Handle); …
Ravindra Nadh
  • 131
  • 2
  • 10
4
votes
1 answer

How to remove make new folder FolderBrowserDialog

Hi I'm using FolderBrowserDialog with wpf in visual studio 2013 but i want remove the button make new folder because in my application is meaningless, I see this article http://www.codeproject.com/Articles/14454/Extended-Folder-Browser that disable…
Cyberguille
  • 1,552
  • 3
  • 28
  • 58
4
votes
1 answer

Folder browser to list all system drive in WPF

I have created a FOLDER BROWSER control in WPF, and is working fine, but for only one drive that I hard code. The document I followed to do so is : http://msdn.microsoft.com/en-us/library/bb546972%28v=vs.90%29.aspx I want to make it list all drives…
Akon
  • 272
  • 1
  • 6
  • 20
4
votes
3 answers

C# How to allow selection of My Computer with folderBrowserDialog

In my application, I want the folderBrowserDialog to allow selection of My Computer. But the OK button gets disabled after selecting My Computer from the dialog box. Is there any way to allow the selection of My Computer in Browse Dialog?
Vivek
  • 11,938
  • 19
  • 92
  • 127
3
votes
4 answers

FolderBrowserDialog Cancel Event C#

I have an issue with dialog forms. Below is a section of C# code which calls the FolderBrowserDialog window. Now when I click "ok" on a folder it will close the dialog so not concerned about that so much. However does anyone know how to detect the…
Marshal
  • 1,177
  • 4
  • 18
  • 30
3
votes
4 answers

FolderBrowserDialog crashes the application

Whenever I call folderbrowserdialog.showDialog() my application crashes. I'm using the code that worked before for me, so it CAN NOT be the code. try { FolderBrowserDialog fbd = new FolderBrowserDialog(); fbd.RootFolder =…
killie01
  • 253
  • 3
  • 11
3
votes
1 answer

How to browse for folder on Windows AND OSX?

Usually, I use SHBrowseForFolder to support browsing for a folder... but I want to support both Windows and OSX. I looked at: System.IOUtils but didn't find any relevant function (maybe, I missed one?) TOpenDialog options but didn't find one to…
Whiler
  • 7,998
  • 4
  • 32
  • 56
3
votes
1 answer

Select the default path of the FolderBrowserDialog in c# wpf

I am currently working on a C# WPF project. I have a FolderBrowserDialog in the System.Windows.Forms namespace. I am creating an instance of the dialog with a variable named dlg and assigning the selected path to My Documents by using the following…
Boardy
  • 35,417
  • 104
  • 256
  • 447
3
votes
3 answers

FolderBrowserDialog bring to front

I have the following PowerShell function which works well, but the window opens up in the background behind the PowerShell ISE. # Shows folder browser dialog box and sets to variable function Get-FolderName() { Add-Type -AssemblyName…
jshizzle
  • 467
  • 1
  • 11
  • 23
3
votes
1 answer

FolderBrowserDialog with text input option

Given that the dialog is called folder BROWSER dialog I suspect the answer is no, but is there a way to get a folder browser that allows text input of path, rather than forcing browse? I need to select a folder (and only a folder) from a network…
Gordon
  • 6,257
  • 6
  • 36
  • 89
3
votes
2 answers

folderbrowserdialog on C# winforms

I am using folderBrowserDialog in my winform. I need the default or initial path to be a network location. for eg: folderBrowserDialog1.SelectedPath = @"\\server1\foo\bar\"; This does not work. My system is on the right network and I am able to…
topgun_ivard
  • 8,376
  • 10
  • 38
  • 45
1 2
3
18 19