By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,639 Members | 1,326 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,639 IT Pros & Developers. It's quick & easy.

OpenFileDialog Control

P: n/a
Hi Friends,

Can anyone please help me with the OpenFileDialog Contol 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/
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I believe there is no reasonable way to achieve this with the stock
OpenFileDialog.
However, if you get your hands on the VB Power Pack on GotDotNet, you can roll
your own.
Start here for a nice write up and links:
http://msdn.microsoft.com/vbasic/def...bpowerpack.asp

Look at the FileViewer and FolderViewer controls.
They are not perfect, but still very nice!
And you should be able to achieve what you want very easily with these.

Gerald

"Paras Wadehra" <paraswadehra@Please_Remove_This_Hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Friends,

Can anyone please help me with the OpenFileDialog Contol 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/

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.