Re: Root dir in open file dialog

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Joseph M. Newcomer (newcomer_at_flounder.com)
Date: 01/17/05


Date: Mon, 17 Jan 2005 14:38:01 -0500

Set the initial directory. Then set the flag that disables the ability of the user to
change the directory. Unfortunately, this may be overkill. But right now it's all we've
got.

An alternative would be to create a subclass and implement the OnFolderChange handler,
which processes the notification message on directory change. Then, if the changed
directory is a subdirectory of the root, you let it go by, otherwise, you revert to the
saved directory. I haven't looked at this to see if it will really do the job
                                joe

On Mon, 17 Jan 2005 12:07:32 -0500, Murrgon <murrgon@hotmail.com> wrote:

>Is it possible to set the root folder that is used in an
>open file dialog? If so, how would one go about specifying
>it?
>
>Just to be clear, I don't want to just set the initial dir.
>I want to set the root of the explorer tree to a particular
>folder so the user cannot select anything "above" that dir.
>
>Thanks

Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm



Relevant Pages

  • Re: SU privileges
    ... If you know a userid you want to limit the ability to su too (like root), ... Another way would be to set an ACL on the su command. ... If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments. ...
    (AIX-L)
  • Re: SU privileges
    ... If you know a userid you want to limit the ability to su too (like root), ... those users in group suroot can su to root. ... Another way would be to set an ACL on the su command. ...
    (AIX-L)
  • Re: managing su after implementing sudo
    ... If you know a userid you want to limit the ability to su too (like root), ... those users in group suroot can su to root. ... managing 'su' after implementing sudo ...
    (AIX-L)
  • Re: .NET 1.1 Virtual Directory in a .NET 2.0 Website
    ... Juan T. Llibre, asp.net MVP ... asp.net faq: http://asp.net.do/faq/ ... John Timney (MVP) ... IIS webs will always inherit from the root node. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: System error 1326 has occurred - Logon failure:
    ... "Pegasus (MVP)" wrote: ... I have try ip but still cant, when i enable the guest user account ... What will be the root cause, ...
    (microsoft.public.windows.server.general)