I need to select the folder by using the OpenFiledialog option .I tried something in my below code.But i cant able to select the folder using that Code. please help me to solve this issue.
- ofd = new System.Windows.Forms.OpenFileDialog();
- ofd.Filter = "Folders|\n";
- ofd.AddExtension = false;
- ofd.CheckFileExists = false;
- ofd.DereferenceLinks = true;
- ofd.Multiselect = false;
- ofd.ShowDialog();
Please help me to solve this.
Thanks Regards,
Dinesh

Tapan PatelRank #614 · 3.9K reputationPosted Oct 4, 2017, 5:36 AM EDT
Sundaram SubramanianRank #150 · 15.2K reputationPosted Oct 3, 2017, 10:24 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Oct 3, 2017, 10:27 PM EDT
Dinesh SanthalingamRank #2,085 · 690 reputationPosted Oct 4, 2017, 4:23 AM EDT
Sundaram SubramanianRank #150 · 15.2K reputationPosted Oct 4, 2017, 4:26 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Oct 4, 2017, 5:05 AM EDT