I have this code:
string directory;
FolderBrowserDialog fbd = new FolderBrowserDialog();
if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
directory = fbd.SelectedPath;
…
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…
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…
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…
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…
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?
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; //…
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…
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…
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:
…
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…
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 =…
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),…