Posts

Showing posts with the label FolderBrowseDialog

How to Browse Folders using Dot NET

Image
Most of you may have come up with scenarios where you wish to let the user browse for a specific folder or file. This is most commonly occured when you are requested to open a specific file in Word or Power Point. I would be using Visual Studio 2005 and DOT NET Framework 2.0 DOT NET 2.0 Framework supports several useful dialogs. In this, we will use the "FolderBrowseDialog" class for the example. It can be very easily found in the "ToolBox" under "Dialogs" category. Simply drag and drop one on to your Form. Add a Button also for the demo. Then, double click on the Search Button and it would take you to the Click Event of the Button. Inside that, place the following LOC. DialogResult result; result = folderBrowserDialog1.ShowDialog(); if (result == DialogResult.OK) { MessageBox.Show("Selected Path :" +folderBrowserDialog1.SelectedPath); javascript:void(0) } Lets anal...