Created
May 30, 2022 10:03
-
-
Save alws34/ed58350a4945f3f5edae9da6f1609de0 to your computer and use it in GitHub Desktop.
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
| private void btnBrowse_Click(object sender, EventArgs e) | |
| { | |
| OpenFileDialog fbd = new OpenFileDialog() { | |
| ValidateNames = false, | |
| CheckFileExists = false, | |
| CheckPathExists = true, | |
| FileName = "Folder Selection." | |
| }; | |
| if (fbd.ShowDialog() == DialogResult.OK) | |
| textBoxPath.Text = Path.GetDirectoryName(fbd.FileName); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Get full file path