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. Urgent

Urgent

Scheduled Pinned Locked Moved C#
7 Posts 7 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
    Shiv5
    wrote on last edited by
    #1

    I have written the code like for ShowNewFolderButton = false DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } //folderBrowserDialog1.ShowNewFolderButton = false;// This line of code is not working

    R M A J 4 Replies Last reply
    0
    • S Shiv5

      I have written the code like for ShowNewFolderButton = false DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } //folderBrowserDialog1.ShowNewFolderButton = false;// This line of code is not working

      R Offline
      R Offline
      rah_sin
      wrote on last edited by
      #2

      try out folderBrowserDialog1.ShowNewFolderButton = false; DialogResult result = folderBrowserDialog1.ShowDialog(); if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } rahul

      1 Reply Last reply
      0
      • S Shiv5

        I have written the code like for ShowNewFolderButton = false DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } //folderBrowserDialog1.ShowNewFolderButton = false;// This line of code is not working

        M Offline
        M Offline
        maryamf
        wrote on last edited by
        #3

        MSDN :Setting ShowNewFolderButton to false does not work on Windows 2000.

        1 Reply Last reply
        0
        • S Shiv5

          I have written the code like for ShowNewFolderButton = false DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } //folderBrowserDialog1.ShowNewFolderButton = false;// This line of code is not working

          A Offline
          A Offline
          AbdulRahmanOfpk
          wrote on last edited by
          #4

          FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; }

          L 1 Reply Last reply
          0
          • A AbdulRahmanOfpk

            FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; }

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            Just repasting the question isnt a sufficient answer... :doh:**

            How xacc.ide transforms text to colored words on the screen
            Intel PentuimM (aka Centrino) undervolting

            **

            1 Reply Last reply
            0
            • S Shiv5

              I have written the code like for ShowNewFolderButton = false DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } //folderBrowserDialog1.ShowNewFolderButton = false;// This line of code is not working

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

              Shiv5 wrote:

              DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false;

              ShowDialog halts the running of the current code until the user closes the opened dialog form. Therefore, setting ShowNewFolderButton = false after this line will definately not affect that property when the window is shown! It will set that property AFTER the window is closed. Swap those two lines around. folderBrowserDialog1.ShowNewFolderButton = false; DialogResult result = folderBrowserDialog1.ShowDialog(); That said, I also remember reading somewhere that this property does not have any affect on Windows 2000. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

              L 1 Reply Last reply
              0
              • J J4amieC

                Shiv5 wrote:

                DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false;

                ShowDialog halts the running of the current code until the user closes the opened dialog form. Therefore, setting ShowNewFolderButton = false after this line will definately not affect that property when the window is shown! It will set that property AFTER the window is closed. Swap those two lines around. folderBrowserDialog1.ShowNewFolderButton = false; DialogResult result = folderBrowserDialog1.ShowDialog(); That said, I also remember reading somewhere that this property does not have any affect on Windows 2000. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

                L Offline
                L Offline
                led mike
                wrote on last edited by
                #7

                J4amieC wrote:

                That said, I also remember reading somewhere that this property does not have any affect on Windows 2000.

                Probably in the documentation. They tend to hide information in there. :)

                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