Browse
-
Hi, I am developing an application in which i have to create a browse button and a list box. as soon as the user clicks on the browse button, he gets an option to choose a directory from the hard disk. As soon as he chooses a folder, the contents of the folder are displayed in the list box. Can someone help me on this? Thanks :-O
-
Hi, I am developing an application in which i have to create a browse button and a list box. as soon as the user clicks on the browse button, he gets an option to choose a directory from the hard disk. As soon as he chooses a folder, the contents of the folder are displayed in the list box. Can someone help me on this? Thanks :-O
united18 wrote:
Can someone help me on this?
Post editted because I misunderstood your question... You can use the
folderBrowserDialog
oropenFileDialog
object. Just drag an instance of this onto your form. Change the Browse button's Click() event to show one of the above objects and use that object's properties and methods to determine the user's selection. There is more comprehensive help contained in the Visual Studio help files. There are some sample programs on MSDN?. ...Steve "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once :-) -- modified at 20:12 Tuesday 28th February, 2006 -
united18 wrote:
Can someone help me on this?
Post editted because I misunderstood your question... You can use the
folderBrowserDialog
oropenFileDialog
object. Just drag an instance of this onto your form. Change the Browse button's Click() event to show one of the above objects and use that object's properties and methods to determine the user's selection. There is more comprehensive help contained in the Visual Studio help files. There are some sample programs on MSDN?. ...Steve "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once :-) -- modified at 20:12 Tuesday 28th February, 2006 -
The openFileDialog object may be a better fit for your application. Again, sorry I misunderstood your question. I have updated my earlier response to reflect this. ...Steve "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once :-)