You cannot view the Windows Forms designer of a Windows Form in Visual C++ .NET or in Visual C++ 2005 (843402)
The information in this article applies to:
- Microsoft Visual C++ 2005 Express Edition
- Microsoft Visual C++ .NET (2003)
SYMPTOMSYou add an existing Windows Form in a Microsoft Visual C++
.NET or Microsoft Visual C++ 2005 project. When you try to open the Windows Form, you cannot view the
Windows Form designer. You view the Code window of the Windows Form instead of
the Windows Form designer.CAUSEBy default, the FileType property of a Windows Form that is
added from an existing Visual C++ .NET or Visual C++ 2005 project is C++ Header File. If the
FileType property of the Windows Form is C++ Header File, you cannot view the
Windows Form designer.WORKAROUNDTo work around this problem, change the FileType property
value of the Windows Form from C++ Header File to C++
Form. To do this, follow these steps:
- In Solution Explorer, click the Windows Form name that is
added from an existing project. For example, in Solution Explorer, click
myForm.h.
- On the View menu, click Properties
Window. The Properties pane that displays the properties of the
Windows Form appears. For example, the Properties pane displays the properties
of the myForm.h file. In the Properties pane, the value of the
FileType property is C++ Header
File.
- In the Properties pane, click C++ Form
in the FileType drop-down list box.
- In Solution Explorer, double-click the Windows Form name to
view the Windows Form designer of the Windows Form. For example, in Solution
Explorer, double-click myForm.h.
STATUS This
behavior is by design.REFERENCESFor more information, visit the following Microsoft
Developer Network (MSDN) Web sites:
Modification Type: | Major | Last Reviewed: | 1/5/2006 |
---|
Keywords: | kbProperties KbUIDesign kbForms kbWindowsForms kbprb KB843402 kbAudDeveloper |
---|
|