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
vote
1 answer

Show links to folders in FolderBrowserDialog

Is it possible to make FolderBrowserDialog display links to folders? For example, if I'm pointing it at my desktop which contains links to other folders, the FolderBrowserDialog will not show them.
Yoav
  • 2,077
  • 6
  • 27
  • 48
1
vote
1 answer

can I store Desktop.getDesktop().open(new File(".\\")); into a variable

If this is something that can be stored in a variable what type of variable would this be. I apologize for not knowing how to ask this correctly however I am learning as OJT and am not familiar with all of the terminology yet. Similarly if this…
Kenneth V
  • 11
  • 2
1
vote
1 answer

C# vs PowerShell

I'm trying to re-write a C# script in PowerShell. I'm figuring it out piece by piece. The PowerShell version is telling me 'Cannot find an overload for "Call" and the argument count: "2".'. So I know it's because PS is requiring that the 3rd…
1
vote
1 answer

SHGetPathFromIDList (Delphi) - False Positive Issue

I am using Kaspersky Internet Security 2018. But when I compile my Delphi application with these codes, my anti-virus application will remove the compiled exe: function BrowseForFolder(var dpFolder: String; dpTitle: String): Boolean; var …
user9675007
1
vote
1 answer

C# - Browse Folder and Binary Reader

I am having difficulty getting Binary Reader to detect the files selected from a "Browse for Folder" dialogue. The intent is to read at "X" location within all files in a directory and save that data to a TXT file. I've tried various ways but cannot…
1
vote
1 answer

File Save Location Not Always Updated

I am using the FolderBrowserDialog to let the user select a location to save files, and/or create a new folder. It is working 99% of the time, however in some instances when the user clicks the Create New Folder button, changes the name, then…
Smith Stanley
  • 461
  • 1
  • 8
  • 25
1
vote
1 answer

FolderBrowserDialog hidden in background

I open a FolderBrowserDialog from a Winforms application. The first time after app start that works fine. Then i start a backgroundworker and do some work. If i then, after the Backgroundworker finished, open the FolderBrowserDialog again, the app…
Christoph
  • 11
  • 2
1
vote
2 answers

Initial directory for OpenFileDialog vs FolderBrowserDialog

When I use the OpenFileDialog to pick a file, it remembers the last visited directory so that when I go back to the dialog, it starts in that location by default. But the FolderBrowserDialog does not start at that location and instead starts at the…
Gilles jr Bisson
  • 449
  • 4
  • 11
1
vote
1 answer

Better FolderDialog for VB.NET

I'm hesitant to ask this question because I'm sure it must already be answered somewhere, but I've been searching for hours and either I'm drowning in all the noise or I simply can't find an elegant solution for VB.NET. Essentially, my problem is…
Zingapuro
  • 51
  • 8
1
vote
1 answer

VB.NET - Select all .txt files, including sub directory

I need to make a tool that will pick every .txt file in its folder and subfolders. I came to a point that the tool will pick every .txt file in its folder, but I don't know how to instantly also pick from all the subfolders. Here is a code sample to…
Klaas-Jelle Ras
  • 115
  • 1
  • 1
  • 12
1
vote
1 answer

How to only display folder name instead of path, in textbox from FolderBrowserDialog?

I am able to run the codes for my FolderBrowserDialog and it will show me the entire path for the selected folder. Are there any ways where the text box will only display the folder name instead of the whole path? Now it is showing…
James Quek
  • 15
  • 3
1
vote
4 answers

folderBrowserDialog does not work in c#

when i click on the button to select a folder using folderBrowserDialog in c# the dialog is not shown and the result of dialog is set to Cancel automatically ..here is the code behind Button_Click : private void glassButton1_Click(object sender,…
ako
  • 2,000
  • 2
  • 28
  • 34
1
vote
2 answers

Why can't show FolderBrowserDialog twice in Window constructor?

Out of curiosity, I wonder why I can't show two different instances of FolderBrowserDialog one after the other in the constructor of a Window, but can do it in the Window's Loaded event. The Example 1 just shows the first dialog (fbd1), and doesn't…
Drarig29
  • 1,902
  • 1
  • 19
  • 42
1
vote
1 answer

Using FolderBrowserDialog in Powershell - returns wrong data

I have seen the post "How to properly use the FolderBrowserDialog in Powershell" I am having an issue getting just the path selected to return from the function. At the end of the script I "write-host $a" but instead of getting just the directory…
Shannon
  • 21
  • 4
1
vote
1 answer

Is it possible to select a custom start path in modified FolderBrowser Dialog

Frustrated with the FolderBrowserDialog class UI, I decided to use this implementation which provides more user friendly features such as showing the folder path. https://support.microsoft.com/en-ca/kb/306285 Unfortunately, the startLocation…