Choose Directory?

Discussion in 'Questions (Windows Mobile)' started by tsteward, Aug 10, 2008.

  1. tsteward

    tsteward Active Member Licensed User

    I know I can use opendialog to allow the user to choose a file but how would I get the user to choose a directory.

    In my application a user has related files in one directory. So if they want to open a different collection they need to tell me what directory they reside in.

    Thanks
    Tony
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can use the FolderChooser example.
    It is located under: C:\Program Files\Anywhere Software\Basic4ppc Desktop\Samples
     
  3. tsteward

    tsteward Active Member Licensed User

    Wow pardon my ignorance but I actually have to do it manually?
    Guess I should also include a hard drive chooser for when run on desktop.

    Thanks Erel
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    There is no native FolderChooser on the device. So yes it should be done with code.
    Next version will make it easier. You will be able to add the FolderChooser as a module.
     
  5. tsteward

    tsteward Active Member Licensed User

    No worries thanks for your prompt assistance.

    That code works really well and does exactly what I want.

    Thanks
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice