Horje
c# how to get a file path from user Code Example
c# how to get a file path from user
OpenFileDialog choofdlog = new OpenFileDialog();
choofdlog.Filter = "All Files (*.*)|*.*";
choofdlog.FilterIndex = 1;
choofdlog.Multiselect = true;

if (choofdlog.ShowDialog() == DialogResult.OK)    
{     
    string sFileName = choofdlog.FileName; 
    string[] arrAllFiles = choofdlog.FileNames; //used when Multiselect = true           
}
c# how to get a file path from user
FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.Description = "Custom Description"; 

if (fbd.ShowDialog() == DialogResult.OK)
{
    string sSelectedPath = fbd.SelectedPath;
}




Csharp

Related
c# ternary operator Code Example c# ternary operator Code Example
use OR in shell script Code Example use OR in shell script Code Example
C# ValidationAttribute required when Code Example C# ValidationAttribute required when Code Example
if statement Code Example if statement Code Example
get mouse inpuit new input system Code Example get mouse inpuit new input system Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10