Questions tagged [folderbrowserdialog]

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

Prompts the user to select a folder.

Docs

280 questions
0
votes
1 answer

How can I check the content of the FolderBrowserDialog if is it empty or not?

I'm using FolderBrowserDialog in a WPF project and it works fine, I would like to check the content of the folder selected selectedPath if is it empty or null and the extension of the existed files. How can I do that? try { using (var dialog =…
user6358496
0
votes
0 answers

OpenFileDialog still uses memory after exiting. Is this normal?

I use a CommonOpenFileDialog as a FolderBrowserDialog. For this, I had downloaded the WindowsAPICodePack-Shell.1.1.1 via NuGet. I noticed that when loading the dialog, my memory usage increases from 18MB to 55 MB, and after exiting (whether…
Daniel
  • 374
  • 1
  • 12
0
votes
1 answer

PowerScript: System.Windows.Forms.FolderBrowserDialog opening in the background

PowerScript Noob here. I've found a snippet of code that lets the user select a folder thru a Folder Browser Dialog, instead of having enter the path to the folder manually. Works as expected, except the Folder Browser Dialog often opens behind…
RipRapRob
  • 55
  • 1
  • 10
0
votes
1 answer

C# Save Image files using SaveFileDialog or FolderBrowserDialog

I'm trying to save image files which are converted from PDF to PNG. I want my application to save the converted image if the PDF was a single page document using the "SaveFileDialog", and if the PDF file was a multi-page document, I then want my…
Opu
  • 43
  • 1
  • 8
0
votes
0 answers

Prevent Network Drive Access from FolderBrowseDialog VB.Net

I am using the FolderBrowseDialog in my Vb,Net Windows Form to ask the user to locate where a specific file is on their computer but I only want to allow local drives and not Network Drives. Does anyone know of a way to prevent Network Drives from…
Ian Barber
  • 133
  • 8
0
votes
1 answer

List first few files in subfolders and return list with file names and folder names using VBScript

The code that I currently have (given below), I prompt the user for the folder path then return the first 10 files from one folder. I then put the file names into a text file. I want to be able to list only 10 random "wav" files from each of the…
Joe
  • 357
  • 2
  • 10
  • 32
0
votes
3 answers

Create a folder with a choosen name in Python

I programmed a small GUI with Tkinter where I ask the user for a directory to save certain images, via filedialog.askdirectory. With that information, I am able to create a folder in that directory using os.mkdir(), but I need to predefine its name…
0
votes
2 answers

BrowseFolderDialog - Does this break MVVM?

I am creating an WPF following MVVM. In this I have a button that I would like to Open a FolderBrowserDialog so a user can select a folder path. I know opening dialog is something widely discussed in terms of MVVM because .ShowDialog from the view…
user12669123
0
votes
2 answers

How to remember the last selected folder in FolderBrowserDialog?

I am using FolderBrowserDialog in my application.Through it's constructor I can set RootPath, SelectedPath. It should always open with D:\Export\ directory as default path. If the user selects any other path, the newly selected directory should be…
Suryakavitha
  • 1,371
  • 5
  • 33
  • 49
0
votes
0 answers

How Do I Get The Full Path Of A Selected Directory And Then Use That Directory Within The Code

I have currently created code which grabs a ceratin file extension and puts it into a certain folder. My.Computer.FileSystem.CreateDirectory( "C:\Users\bj\Desktop\Excel Files") Dim filePaths31 =…
0
votes
3 answers

I want to select a desired folder and I want it to automatically search through all other folders within that directory conditionally C#

So here is the folder I wish to select: Selected Folder using FBD Within that BackPath folder are 7 other dated folders as shown: Dated Folders within selected folder Within each of those dated folder are two more folders, named "In" and "Out". What…
0
votes
0 answers

How can I set a default path in FolderBrowser retrieved from app.config?

I'm trying to save user defined path in app.config, and set the same as default path to a FolderBrowser next time the app is run. Seems I'm saving the path, but couldn't set it as Default, next time. Please help me pointing towards where I'm missing…
Koustav
  • 33
  • 6
0
votes
1 answer

FolderBrowserDialog won't show in a single .cs file without Form

I am trying to code a program which is executed when a file is right clicked in windows, and then a context menu feature named 'Move to' executes a file in the windows registry HKEY ClASSES. It ought to parse in "%1" as argument when it executes, so…
Cazo
  • 151
  • 7
0
votes
1 answer

How to get server file path in folderbrowserdialog?

How can I show folder directory of the server file path (base on SQL server installation computer's folder path) on the client computer when I open FolderBrowserDialog. I have the SQL server backup function and this function needs a directory for…
lwin
  • 3,784
  • 6
  • 25
  • 46
0
votes
0 answers

Can I load an XML file by partial name using FolderBrowserDialog then loop to open another?

I have working code to load 7 different XML files and import the relevant data into data tables displaying using data grid views. This uses an individual open file dialog per file, I would now like to create an automated button which will load the…
Steve Carr
  • 13
  • 3