Microsoft KB Archive/843365

= The Properties window display and the Class View selection do not change when you select an item in the Properties window drop-down list box in Visual Studio .NET =

Article ID: 843365

Article Last Modified on 5/18/2007

-

APPLIES TO


 * Microsoft Visual C# .NET 2003 Standard Edition
 * Microsoft Visual C# .NET 2002 Standard Edition
 * Microsoft Visual C++ .NET 2003 Standard Edition
 * Microsoft Visual C++ .NET 2002 Standard Edition

-





SYMPTOMS
In a Microsoft Visual C# .NET project or in a Microsoft Visual C++ .NET project, after you select multiple items in Class View, you select one item in the drop-down list box in the Properties window. However, the Properties window does not display the properties of the item that you selected. Additionally, the selected item in Class View does not change to the item that you selected in the Properties window.



CAUSE
This behavior occurs because Class View is not synchronized with the Properties window in Microsoft Visual Studio .NET.



STATUS
This behavior is by design.



Steps to reproduce the behavior
 Start Visual Studio .NET. Use Visual C# .NET or Visual C++ .NET to create a Console Application project that is named ConsoleApp.

Note If you are using Visual C++ .NET 2002, create a Managed C++ Application project. On the View menu, click Properties Window. On the View menu, click Class View. If you are using Visual C# .NET, follow these steps:  In Class View, expand ConsoleApp, expand ConsoleApp, and then expand Class1.</li> Click Class1.</li> Press CTRL, and then click Main(string[]).</li> In the drop-down list box of the Properties window, select Class1 CodeClass. The behavior that is mentioned in the &quot;Symptoms&quot; section occurs.</li></ol>

If you are using Visual C++ .NET, follow these steps: <ol style="list-style-type: lower-alpha;">  In the ConsoleApp.cpp file, add the following code after the _tmain method: void MyMethod { } </li> In Class View, expand ConsoleApp, and then expand Global Functions and Variables.</li> Click MyMethod(void).</li> Press CTRL, and then click _tmain(void).</li> In the drop-down list box of the Properties window, select _tmain VCCodeFunction. The behavior that is mentioned in the &quot;Symptoms&quot; section occurs.</li></ol> </li></ol>

Synchronization between Solution Explorer and the Properties window
If you select multiple items in Solution Explorer instead of in Class View, the behavior that is mentioned in the &quot;Symptoms&quot; section does not occur because Solution Explorer is synchronized with the Properties window in Microsoft Visual Studio .NET.

<div class="references_section">