Answers for "openfiledialog c# wpf"

C#
1

wpf choose file dialog

all the Source code really helpfull
recomend to check

OpenFileDialog openFileDialog = new OpenFileDialog();
if (openFileDialog.ShowDialog() == true)//if user chose a file
{
	//do something
}
Posted by: Guest on May-26-2020
0

OpenFileDialog c#

OpenFileDialog fileDialog= new OpenFileDialog(); 
fileDialog.DefaultExt = ".txt"; // Required file extension 
fileDialog.Filter = "Text documents (.txt)|*.txt"; // Optional file extensions

fileDialog.ShowDialog();
Posted by: Guest on September-24-2021

C# Answers by Framework

Browse Popular Code Answers by Language