Search:
Namespaces
Discussions
.NET v1.1
Feedback
Restrict the user to a particular folder in OpenFileDialog Control
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.faqs
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
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/
Reply to this message...
Saurabh Nandu (VIP)
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 ]
"Paras Wadehra" wrote:
[Original message clipped]
Reply to this message...
System.IO.Directory
System.Windows.Forms.OpenFileDialog
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com