Questions tagged [folderbrowserdialog]

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

Prompts the user to select a folder.

Docs

280 questions
-1
votes
1 answer

Iterate through WINAPI TreeView

To classify the question: Basically, it's all about a user dialog!!! I work with WPF and don't want to use the FolderBrowserDialog because the Forms NameSpace can only be integrated poorly in a .NETCore WPF project. So I chose the SHBrowseForFolder…
perlfred
  • 1
  • 3
-1
votes
1 answer

I used OpenFileDialog in Visual Studio "Windows Forms App(.NET Framework)" to open "Select Folder", but the prompt doesn't open. How can I solve this?

private void locbtn_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Title = "Select Folder"; openFileDialog1.InitialDirectory = @"C:\";//--"C:\\"; …
-1
votes
1 answer

What is the proper substitute for FolderBrowserDialog to use in a .net 6 WPF application?

I am trying to use correct practices and avoid HACKS in a new .net 6.0 WPF application. I need a FolderBrowserDialog. There is one in System.Windows.Forms, but by default .net 6 doesn't let you use that. There are workarounds that I've found on…
Curtis
  • 5,794
  • 8
  • 50
  • 77
-1
votes
1 answer

Explorer "Browse for Folder"

I'm trying to create a script that requires the user to select the starting folder for their project. I have found several sources, but the coding languages are not what I'm using. The language I'm using is Autolisp which will most likely be calling…
G Beck
  • 131
  • 1
  • 14
-1
votes
2 answers

How to choose where append data?

I'm a begginer programmer and I'm learning C#, I have a big difficulty with Files. Someone can help me with this, please? I created a .txt file and I want to append text choosing the file location instead creating/saving in the startup path just…
-1
votes
1 answer

How do I list the file in it by increasing the filename by one?

I have thousands of project folders and inside each folder I have another folder named test. There is only one pdf file in this folder. When I select the top folder, I want to get the pdfs in these folders and copy them to another location. How can…
Yusuf
  • 3
  • 1
-1
votes
1 answer

Keep modal window open when folderbrowser closes

I have a main Windows form which launches a modal dialog to get some configuration values which are paths. From the modal window I launch a folderBrowser (wanting to do it for each path to be configured). When the folderBrowser closes the modal…
StephenGB
  • 9
  • 1
-1
votes
1 answer

Is Owner Window required in WPF FolderBrowserDialog in 2021?

When using FolderBrowserDialog in WPF, I've seen a few answers where using the Win32 API is required to make it modal. For example, Using FolderBrowserDialog in WPF application How to use a FolderBrowserDialog from a WPF application Actually, is the…
joedotnot
  • 4,810
  • 8
  • 59
  • 91
-1
votes
2 answers

Make user choose an image with folderbrowser for a picturebox (VB.NET)

Thanks to one of your old questions, I started this code: Dim fd As OpenFileDialog = New OpenFileDialog() Dim strFileName As String fd.Title = "Please select an image" fd.InitialDirectory = "C:\Users\" fd.Filter = "PNG Images (*.png*)|*.png*|JPG…
Loud
  • 1
  • 1
-1
votes
1 answer

How to set read only properties in FolderBrowserDialog

I am using custom WPF FolderBrowserDialog in my application for Exporting data to particular folder location. It has read only properties SelectedPath, RootPath ,other properties and dependency properties available in it. Now I want to assign my…
Suryakavitha
  • 1,371
  • 5
  • 33
  • 49
-1
votes
1 answer

Limit folderbrowserdialog to one folder

I've got a folderbrowserdialog that will open to a certain folder, lets say C:\Temp. Within this folder are a number of folders, e.g C:\Temp\1\ C:\Temp\2\ etc. Now i only want the user to be able to select a folder inside C:\Temp, e.g select 1 or…
Ben Bodie
  • 75
  • 12
-1
votes
2 answers

How to Get the Target Folder

I was just at Open directory dialog, and they said "get this package, and do this and this to get a folder select window to show up". Well, that all works great, using the Windows API Code Pack-Shell package. However, now I want to get the actual…
Jumanji
  • 51
  • 1
  • 4
-1
votes
1 answer

FolderBrowserDialog not saving files where selected

I'm trying to make a YouTube downloader for fun. I saw some tutorials and I finished it, but when I download it and select the path if I choose "Desktop", it doesn't download but if I choose a folder on the desktop, it downloads it but not in the…
-1
votes
1 answer

InnoSetup - What is the textbox name in the folder selection dialog?

Can you modify the default folder selection dialog in InnoSetup? I mainly need to change the folder path textbox in this dialog. When the user clicks the Next button it needs to check if the folder path given is "C:\Data1". If this path is given…
Codename K
  • 890
  • 4
  • 23
  • 52
-1
votes
2 answers

How can I save the number of folders using FolderBrowserDialog in C# in a directory that is specified by user?

In my code, there is a button in the form, "Select Folder". When the user click on this button, a Browser dialog box appears. I want user to select a directory from this Browser. After that, I want to keep the number of folder (only folders, not…
Salim Azak
  • 79
  • 10
1 2 3
18
19