Microsoft KB Archive/814733

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

Article ID: 814733

Article Last Modified on 1/25/2006

-

APPLIES TO


 * Microsoft Visual Basic .NET 2003 Standard Edition
 * Microsoft Visual C# .NET 2003 Standard Edition
 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition

-





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.



Steps to Reproduce the Problem
 On a Windows 2000-based computer, run Microsoft Visual Studio .NET 2003. Create a new Windows application by using either Visual Basic .NET or Visual C# .NET.

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

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

By default, Button1 is created.</li>  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; </li> On the Debug menu, click Start.</li> Click Button1.

Notice the New Folder in the Browse For Folder dialog box.</li></ol>

<div class="references_section">