Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Open File Dialog Box

Open File Dialog Box

Scheduled Pinned Locked Moved C#
question
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Satish Pai
    wrote on last edited by
    #1

    HI,Tell me what is wrong in this code i am not able to view the Windows Folder openFileDialog1.CustomPlaces.Add("33E28130-4E1E-4676-835A-98395C3BC3BB"); openFileDialog1.AutoUpgradeEnabled = true; // Add Links custom place using GUID openFileDialog1.CustomPlaces.Add( new FileDialogCustomPlace( new Guid("BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968"))); // Add Windows custom place using file path. openFileDialog1.CustomPlaces.Add(@"c:\Windows\"); openFileDialog1.ShowDialog();

    M J 2 Replies Last reply
    0
    • S Satish Pai

      HI,Tell me what is wrong in this code i am not able to view the Windows Folder openFileDialog1.CustomPlaces.Add("33E28130-4E1E-4676-835A-98395C3BC3BB"); openFileDialog1.AutoUpgradeEnabled = true; // Add Links custom place using GUID openFileDialog1.CustomPlaces.Add( new FileDialogCustomPlace( new Guid("BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968"))); // Add Windows custom place using file path. openFileDialog1.CustomPlaces.Add(@"c:\Windows\"); openFileDialog1.ShowDialog();

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      Satish Pai wrote:

      HI,Tell me what is wrong in this code i am not able to view the Windows Folder

      First of all, you tell us what do you want to do? If you want to select Windows folder by default, then you should this:

      openFileDialog1.InitialDirectory = @"c:\Windows\";

      Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      S 1 Reply Last reply
      0
      • M Manas Bhardwaj

        Satish Pai wrote:

        HI,Tell me what is wrong in this code i am not able to view the Windows Folder

        First of all, you tell us what do you want to do? If you want to select Windows folder by default, then you should this:

        openFileDialog1.InitialDirectory = @"c:\Windows\";

        Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        S Offline
        S Offline
        Satish Pai
        wrote on last edited by
        #3

        I want Windows Folder as shortcut in places bar ie at the left side. Do u have any Idea about this

        M OriginalGriffO 2 Replies Last reply
        0
        • S Satish Pai

          I want Windows Folder as shortcut in places bar ie at the left side. Do u have any Idea about this

          M Offline
          M Offline
          Manas Bhardwaj
          wrote on last edited by
          #4

          openFileDialog1.CustomPlaces.Add(@"c:\Windows\");

          This code works for me atleast. Don't you see the Winddows Folder on left hand side? Is you Windows Folder is actually on C drive or somewhere else?

          Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

          S 1 Reply Last reply
          0
          • S Satish Pai

            I want Windows Folder as shortcut in places bar ie at the left side. Do u have any Idea about this

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #5

            See my reply to your earlier question? Changing the Places pane[^]

            No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            1 Reply Last reply
            0
            • M Manas Bhardwaj

              openFileDialog1.CustomPlaces.Add(@"c:\Windows\");

              This code works for me atleast. Don't you see the Winddows Folder on left hand side? Is you Windows Folder is actually on C drive or somewhere else?

              Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

              S Offline
              S Offline
              Satish Pai
              wrote on last edited by
              #6

              which Operating system u are running this program

              M 1 Reply Last reply
              0
              • S Satish Pai

                HI,Tell me what is wrong in this code i am not able to view the Windows Folder openFileDialog1.CustomPlaces.Add("33E28130-4E1E-4676-835A-98395C3BC3BB"); openFileDialog1.AutoUpgradeEnabled = true; // Add Links custom place using GUID openFileDialog1.CustomPlaces.Add( new FileDialogCustomPlace( new Guid("BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968"))); // Add Windows custom place using file path. openFileDialog1.CustomPlaces.Add(@"c:\Windows\"); openFileDialog1.ShowDialog();

                J Offline
                J Offline
                J4amieC
                wrote on last edited by
                #7

                I assume you're on XP and the documentation on MSDN clearly states this has no effect on XP.

                1 Reply Last reply
                0
                • S Satish Pai

                  which Operating system u are running this program

                  M Offline
                  M Offline
                  Manas Bhardwaj
                  wrote on last edited by
                  #8

                  Vista

                  Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

                  S 1 Reply Last reply
                  0
                  • M Manas Bhardwaj

                    Vista

                    Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

                    S Offline
                    S Offline
                    Satish Pai
                    wrote on last edited by
                    #9

                    Yes that's why it works in Properly.This Code does not work for Xp So Manas thank u

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups