Folder browser dialog
-
hi, i am using a folder browser dialog and selecting the pericular folder. Now my qusestion is how to get the files of selected folder. pls help me. With regards Prasad:)
-
hi, i am using a folder browser dialog and selecting the pericular folder. Now my qusestion is how to get the files of selected folder. pls help me. With regards Prasad:)
-
use Directory.GetFiles(path) this will give u the list of all the files in that folder.
Thanks & Regards, Pramod "Everyone is a genius at least once a year"
hi,friend i am working on c# directory. i am not getting this option itself pls help me thanks prasad:)
-
hi,friend i am working on c# directory. i am not getting this option itself pls help me thanks prasad:)
The
FolderBrowserDialog
has a property calledSelectedPath
that gives you the path selected by the user. Use this path together with the classes provided by the System.IO namespace to get further information about the selected directory and its content. For example, to get the names of the files in the directory pass the return value ofFolderBrowserDialog.SelectedPath
to the staticDirectory.GetFiles
method.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
hi,friend i am working on c# directory. i am not getting this option itself pls help me thanks prasad:)
-
add the namespace System.io
Thanks & Regards, Pramod "Everyone is a genius at least once a year"
thank you friend it is working with regards prasad:)