Directory Picker ???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • HyperX

    #1

    Directory Picker ???

    Is there any way that I can use "OpenFileDialog " as "Directory Picker"
    rather than file picker or should I write my own damn code in .net???

    HyperX.
  • William Ryan

    #2
    Re: Directory Picker ???

    If your using VS 2003 there's a built in FolderBrowser control. If you
    aren't you can wait until you upgrade or unfortunately, write it yourself.

    HTH,

    Bill
    "HyperX" <hyper_x_43@yah oo.com> wrote in message
    news:4de684ec.0 312141526.588d4 d35@posting.goo gle.com...[color=blue]
    > Is there any way that I can use "OpenFileDialog " as "Directory Picker"
    > rather than file picker or should I write my own damn code in .net???
    >
    > HyperX.[/color]


    Comment

    • woodBeeProgrammer

      #3
      Directory Picker ???

      I have exactly the same question, and one more additional-
      - suppose one wanted to extend OpenFileDialog to be
      DirectoryPicker or in some other way (for instance adding
      a label with hints for the user, or whatever), is there
      a "good" way to do this?

      [color=blue]
      >-----Original Message-----
      >Is there any way that I can use "OpenFileDialog "[/color]
      as "Directory Picker"[color=blue]
      >rather than file picker or should I write my own damn[/color]
      code in .net???[color=blue]
      >
      >HyperX.
      >.
      >[/color]

      Comment

      • woodBeeProgrammer

        #4
        Re: Directory Picker ???

        hey-- there it is, right in Toolbox.Compone nts..
        Thanks!!

        What about the other question, suppose one wants to
        modify an existing dialog, to add functionality. For
        example, the File.Open in Microsoft Word looks like my
        FileOpen dialog, except on steroids-- it has a dropdown
        button, etc. How does Word get a dialog that "looks"
        almost the same but has custom functionality?

        Thanks in advance!!

        [color=blue]
        >-----Original Message-----
        >If your using VS 2003 there's a built in FolderBrowser[/color]
        control. If you[color=blue]
        >aren't you can wait until you upgrade or unfortunately,[/color]
        write it yourself.[color=blue]
        >
        >HTH,
        >
        >Bill
        >"HyperX" <hyper_x_43@yah oo.com> wrote in message
        >news:4de684ec. 0312141526.588d 4d35@posting.go ogle.com...[color=green]
        >> Is there any way that I can use "OpenFileDialog "[/color][/color]
        as "Directory Picker"[color=blue][color=green]
        >> rather than file picker or should I write my own damn[/color][/color]
        code in .net???[color=blue][color=green]
        >>
        >> HyperX.[/color]
        >
        >
        >.
        >[/color]

        Comment

        • Frank Rizzo

          #5
          Re: Directory Picker ???

          woodBeeProgramm er wrote:
          [color=blue]
          > I have exactly the same question, and one more additional-
          > - suppose one wanted to extend OpenFileDialog to be
          > DirectoryPicker or in some other way (for instance adding
          > a label with hints for the user, or whatever), is there
          > a "good" way to do this?[/color]

          This involves templates and hooking into the OpenFileDialog and is not
          trivial. A great free COM control as available at www.mvps.org/ccrp
          (click on downloads and then locate Extended File Dialogs OCX/DLL.

          Works great.
          [color=blue]
          >
          >
          >[color=green]
          >>-----Original Message-----
          >>Is there any way that I can use "OpenFileDialog "[/color]
          >
          > as "Directory Picker"
          >[color=green]
          >>rather than file picker or should I write my own damn[/color]
          >
          > code in .net???
          >[color=green]
          >>HyperX.
          >>.
          >>[/color][/color]

          Comment

          • Fabio Cavalcante

            #6
            Re: Directory Picker ???

            You can perform tasks like that by inheriting the class and overriding the
            methods you want to add custom functionality to, or just by adding methods
            and taking care of the display.

            Fabio

            "woodBeeProgram mer" <woodBeeProgram mer@spamex.com> wrote in message
            news:13d8301c3c 2c7$d838afe0$a6 01280a@phx.gbl. ..[color=blue]
            > hey-- there it is, right in Toolbox.Compone nts..
            > Thanks!!
            >
            > What about the other question, suppose one wants to
            > modify an existing dialog, to add functionality. For
            > example, the File.Open in Microsoft Word looks like my
            > FileOpen dialog, except on steroids-- it has a dropdown
            > button, etc. How does Word get a dialog that "looks"
            > almost the same but has custom functionality?
            >
            > Thanks in advance!!
            >
            >[color=green]
            > >-----Original Message-----
            > >If your using VS 2003 there's a built in FolderBrowser[/color]
            > control. If you[color=green]
            > >aren't you can wait until you upgrade or unfortunately,[/color]
            > write it yourself.[color=green]
            > >
            > >HTH,
            > >
            > >Bill
            > >"HyperX" <hyper_x_43@yah oo.com> wrote in message
            > >news:4de684ec. 0312141526.588d 4d35@posting.go ogle.com...[color=darkred]
            > >> Is there any way that I can use "OpenFileDialog "[/color][/color]
            > as "Directory Picker"[color=green][color=darkred]
            > >> rather than file picker or should I write my own damn[/color][/color]
            > code in .net???[color=green][color=darkred]
            > >>
            > >> HyperX.[/color]
            > >
            > >
            > >.
            > >[/color][/color]


            Comment

            • Miha Markic

              #7
              Re: Directory Picker ???

              VS.NET 2003/.net 1.1 has FolderBrowserDi alog.
              For 1.0 you might want to write some interop code:


              --
              Miha Markic - RightHand .NET consulting & software development
              miha at rthand com

              "HyperX" <hyper_x_43@yah oo.com> wrote in message
              news:4de684ec.0 312141526.588d4 d35@posting.goo gle.com...[color=blue]
              > Is there any way that I can use "OpenFileDialog " as "Directory Picker"
              > rather than file picker or should I write my own damn code in .net???
              >
              > HyperX.[/color]


              Comment

              Working...