BUG: New folder button is visible at run time when the ShowNewFolderButton property is set to false (814733)



The information in this article applies to:

  • Microsoft Visual Basic .NET (2003)
  • Microsoft Visual C# .NET (2003)
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional

SYMPTOMS

A problem occurs when you set the ShowNewFolderButton property of the FolderBrowserDialog control to False. You do this to hide the New Folder button. Then, you run the application. At run time, you can see the New Folder button in the Browse For Folder dialog box. This problem occurs only on a Windows 2000-based computer.

CAUSE

This problem is a limitation of a Windows 2000-based computer. The problem occurs when the ShowNewFolderButton property is set to False.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Problem

  1. On a Windows 2000-based computer, run Microsoft Visual Studio .NET 2003.
  2. Create a new Windows application by using either Visual Basic .NET or Visual C# .NET.

    By default, Form1 is created.
  3. From the Toolbox, drag a FolderBrowserDialog control to Form1.

    FolderBrowserDialog is created on Form1.
  4. Right-click FolderBrowserDialog1, and then click Properties.
  5. In the Properties window, set ShowNewFolderButton to False.
  6. From the Toolbox, drag a Button control to Form1.

    By default, Button1 is created.
  7. Double-click Button1, and then add the following code to the Button1_Click event handler.

    Visual Basic .NET Code
    FolderBrowserDialog1.ShowDialog()
    Visual C# .NET Code
    folderBrowserDialog1.ShowDialog();
  8. On the Debug menu, click Start.
  9. Click Button1.

    Notice the New Folder in the Browse For Folder dialog box.

REFERENCES

For more information about the FolderBrowserDialog class, see the Microsoft .NET Framework SDK v1.1 documentation:

ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfsystemwindowsformsfolderbrowserdialogclasstopic.htm

Note To access this link, make sure that you have the .NET Framework SDK v1.1 documentation installed.

Modification Type:MajorLast Reviewed:1/25/2006
Keywords:kbvs2005swept kbvs2005doesnotapply kbControl kbProperties kbbug KB814733 kbAudDeveloper