public static FileInfo GetFilePath(string FilterType, string Title, string IntDir) { FileInfo ReturnValue = null; using (OpenFileDialog GetFileDialog = new OpenFileDialog()) { GetFileDialog.Filter = FilterType; GetFileDialog.InitialDirectory = IntDir; GetFileDialog.Title = Title; if (GetFileDialog.ShowDialog() == DialogResult.OK) { ReturnValue = new FileInfo(GetFileDialog.FileName); } } return ReturnValue; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)