Created
February 10, 2016 19:23
-
-
Save Fresh-Dev/eec4e7c4ee3ac8bdcef4 to your computer and use it in GitHub Desktop.
Open File Dialog Simple Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenFileDialog openFileDialog1 = new OpenFileDialog(); | |
openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"; | |
if (openFileDialog1.ShowDialog() == DialogResult.OK) | |
{ return (openFileDialog1.FileName.ToString()); } | |
else { return "Ungültiger Dateipfad !"; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment