Browsing to a location and selecting a file
-
Hi. I am wondering how one goes about letting a user of a Windows forms app select a certain file at a certain location and then the application does whatever with the file. What I am refering to is similar to what we see when we are attaching files in an email, one presses a button and then a dialog box opens that enables the user to browse to a certain location and select a file that is then attached to the email. I would like to know how one can get the app to work with the file chosen by the user a some location on his/her computer? Thanks, F
-
Hi. I am wondering how one goes about letting a user of a Windows forms app select a certain file at a certain location and then the application does whatever with the file. What I am refering to is similar to what we see when we are attaching files in an email, one presses a button and then a dialog box opens that enables the user to browse to a certain location and select a file that is then attached to the email. I would like to know how one can get the app to work with the file chosen by the user a some location on his/her computer? Thanks, F
If you look here: System.Windows.Forms.FileDialog System.Windows.Forms.FolderBrowserDialog You will get what you want. :) Ant. I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)