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/