treeview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • visualise01
    New Member
    • Sep 2008
    • 8

    treeview

    How can I add a treeview of folders on a hard drive and link it to listview of documents held in that folder. (Similar to windows explorer)

    I want to produce this in windows forms.
  • Studlyami
    Recognized Expert Contributor
    • Sep 2007
    • 464

    #2
    I probably shouldn't post this, but #1 hit on google

    Comment

    • visualise01
      New Member
      • Sep 2008
      • 8

      #3
      Originally posted by Studlyami
      I probably shouldn't post this, but #1 hit on google
      Is there any way this can be added to a windows form, not mfc

      Comment

      • Studlyami
        Recognized Expert Contributor
        • Sep 2007
        • 464

        #4
        I'm sorry you are going to need to expand on what you mean by windows form? If you are using c++ what libraries are you using for your windows form or are you using just plain old WIN32? Please provide a little more information about what you are actually using and what is available to you. Are you creating this application using .NET? If you are using .NET perhaps you should ask this question in the .NET forum as they will have more input on what is available in the .net library for you to use.

        Comment

        • visualise01
          New Member
          • Sep 2008
          • 8

          #5
          Originally posted by Studlyami
          I'm sorry you are going to need to expand on what you mean by windows form? If you are using c++ what libraries are you using for your windows form or are you using just plain old WIN32? Please provide a little more information about what you are actually using and what is available to you. Are you creating this application using .NET? If you are using .NET perhaps you should ask this question in the .NET forum as they will have more input on what is available in the .net library for you to use.
          Hi

          I am using Visual c++ .net 2003

          I have created a new Project which is a Windows Form Application.

          I have created a form, within that form I have a treeview and a listview which I selected from toolbox.

          1) How can I list specific folders in the treeview
          2) How can I list the contents of the folders in listview

          I want to create something similar to windows explorer.

          Thanks

          Comment

          • Banfa
            Recognized Expert Expert
            • Feb 2006
            • 9067

            #6
            Originally posted by Studlyami
            I'm sorry you are going to need to expand on what you mean by windows form?
            A Windows form is the generic name for windows using .NET

            In MFC and WIN32 you have Windows and Dialog Boxes but in .NET and behond you just have a Form.

            Comment

            • Banfa
              Recognized Expert Expert
              • Feb 2006
              • 9067

              #7
              Originally posted by visualise01
              How can I add a treeview of folders on a hard drive and link it to listview of documents held in that folder. (Similar to windows explorer)
              Look up the class System::IO::Dir ectory in .NET on MSDN

              Comment

              • Studlyami
                Recognized Expert Contributor
                • Sep 2007
                • 464

                #8
                Originally posted by Banfa
                A Windows form is the generic name for windows using .NET

                In MFC and WIN32 you have Windows and Dialog Boxes but in .NET and behond you just have a Form.
                Ahh that is good to know thanks for the info.

                Comment

                Working...