Windows Forms application using VS2022 CE. I have a 'browse' button for selecting the folder of interest, as shown in the following snippet:
private void btn_Browse_Click(object sender, EventArgs e)
{
…
I open the FolderBrowserDialog via a ajax call to seelct a path on the machine. The dialog opens and works perfect at the first time but when I make the same call again the dialog does not open unless I rebuild the application.
I used OpenFileDialog…
We are using a WinForms FolderBrowserDialog in a WPF/C# Application using some and we have a sentence we have added to the Description property on the FolderBrowserDialog (I'm going to change the text for the sake of the screenshot but our message…
The following code includes 2 buttons resulting in a folderbrowserdialog(1,2), result of 1 is supposed to be passed as $source and the second as $destination. The last button is supposed to run the PS Script
private void…
When I run the below code in Powershell ISE everything runs fine, but when I run it from Powershell Shell I get a lot of errors about icons.
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |Out-Null
$foldername =…
I have a PS1 script which opens a FolderBrowserDialog:
open-folder.ps1
Add-Type -AssemblyName System.Windows.Forms
Push-Location
$FileBrowser = New-Object System.Windows.Forms.FolderBrowserDialog -Property @{
ShowNewFolderButton = $true
…
I have a WPF application where the user must choose a folder for an operation. I achieve this by opening a folder browser dialog when he clicks a button.
I want the dialog to both list external devices, like connected smartphones, and have a textbox…
I'm looking for a way to select a folder with bokeh in python. I know I can select a file by importing Fileinput, is there a similar way for directory?
I am using the FolderBrowserDialog to select the Folder where user can save file. While opening the folder browse dialog, application get crashed and raised below exception.
System.InvalidOperationException: Unable to retrieve the root folder.
…
I am kind of new to Powershell and just want to check if something is possible.
I understand there is a way to allow me to get the path of an individual file and even multiple files with the OpenFile dialog. I also understand there is a way for…
i have this code to create subfolders in the path the user choose
FolderBrowserDialog folderBrs = new FolderBrowserDialog();
if (folderBrs.ShowDialog() == DialogResult.OK)
{
System.IO.DirectoryInfo dir = new…
I apologize upfront for butchering the verbiage. Here is what I am trying to figure out.
I work with projects that currently use windows folders to store project files (500-1000) per project. The current interaction with a project is clicking…
I need to open a winforms FolderBrowserDialog from class library. We are calling the method via web socket from js and i need to open a FolderBrowserDialog in that method in order to get path and do some operations inside the folder. I tried both…