Restrict the user to a particular folder in OpenFileDialog Control

P

Paras Wadehra

Hi Friends,

Can anyone please help me with the OpenFileDialog Control in VB.Net? I want
the user to be restricted to a particular folder only for selecting a file,
i.e. they should not be able to change the directory in the OpenFileDialog!

Is there a way to implement this? Please let me know.

Thanks,
Paras Wadehra

You One Stop Entertainment Guide - http://www.paras.2ya.com/
 
G

Guest

Hi,

There is no way in the Manged Open File Dialog to restrcit the user from
selecting from a particular directory only. I would suggest you use a listbox
and populate it with Directory.GetFiles listings to list all the files in
your current directory and then allow the user to choose only amongst them.

Regards,
Saurabh Nandu
[ www.AksTech.com ]
[ www.MasterCSharp.com ]
 

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

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,840
Latest member
BrendanG78

Latest Threads

Top