C# code needed to open the windows "Open with" dialog

S

Shilpa

Hi All,

I need C# code needed to open the windows "Open with" dialog

Regards,
Shilpa
 
A

Anubhav Jain

Hi Shilpa,
Here is the code snippet --

FolderBrowserDialog dialog = new FolderBrowserDialog();

try

{

if (!String.IsNullOrEmpty(path))

{

dialog.SelectedPath = path.Trim();

}


DialogResult result = dialog.ShowDialog();

if (result == DialogResult.OK)

{

this.path= dialog.SelectedPath;

parameters.ClassesOutputPath = dialog.SelectedPath;

}

}

finally

{

dialog.Dispose();

}

Thanks and Regards,
Anubhav Jain
MTS
Persistent Systems Pvt. Ltd.
Ph:+91 712 2226900(Off) Extn: 2431
Mob : 094231 07471
www.persistentsys.com
Persistent Systems -Software Development Partner for Competitive Advantage.
Persistent Systems provides custom software product development services.
With over 15 years, 140 customers, and 700+ release cycles experience, we
deliver unmatched value through high quality, faster time to market and
lower total costs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top