Advertisement
BurningBunny

OpenFileDialog Wrapper

Mar 15th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. /*
  2.  * -> http://csharpcodewhisperer.blogspot.com
  3.  */
  4.  
  5. string OpenFileHandler()
  6. {
  7.     if(openFileDialog1.ShowDialog() == DialogResult.OK) {
  8.         return openFileDialog1.FileName;
  9.     } else {
  10.         return string.Empty;
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement