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 (843365)



The information in this article applies to:

  • Microsoft Visual C# .NET (2003)
  • Microsoft Visual C# .NET (2002)
  • Microsoft Visual C++ .NET (2003)
  • Microsoft Visual C++ .NET (2002)

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.

MORE INFORMATION

Steps to reproduce the behavior

  1. Start Visual Studio .NET.
  2. 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.
  3. On the View menu, click Properties Window.
  4. On the View menu, click Class View.
  5. If you are using Visual C# .NET, follow these steps:
    1. In Class View, expand ConsoleApp, expand ConsoleApp, and then expand Class1.
    2. Click Class1.
    3. Press CTRL, and then click Main(string[]).
    4. In the drop-down list box of the Properties window, select Class1 CodeClass. The behavior that is mentioned in the "Symptoms" section occurs.
    If you are using Visual C++ .NET, follow these steps:
    1. In the ConsoleApp.cpp file, add the following code after the _tmain method:
      void MyMethod()
      {
      }
    2. In Class View, expand ConsoleApp, and then expand Global Functions and Variables.
    3. Click MyMethod(void).
    4. Press CTRL, and then click _tmain(void).
    5. In the drop-down list box of the Properties window, select _tmain VCCodeFunction. The behavior that is mentioned in the "Symptoms" section occurs.

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 "Symptoms" section does not occur because Solution Explorer is synchronized with the Properties window in Microsoft Visual Studio .NET.

REFERENCES

For more information about Class View and about the Properties window, visit the following Microsoft Developer Network (MSDN) Web sites:

Modification Type:MajorLast Reviewed:6/8/2004
Keywords:kbide kbDesigner kbProperties kbprb KB843365 kbAudDeveloper