Code comments that you add in the InitializeComponent method are lost when you add a control in Visual Studio .NET or in Visual Studio 2005 (836669)
The information in this article applies to:
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio 2005 Standard Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
SYMPTOMSIn Microsoft Visual Studio .NET or in Microsoft Visual Studio 2005, when you create a Microsoft Windows Application
project, you can add code comments in the InitializeComponent method. However, if
you add a control to the Windows Form later, the code comments that you added previously are
lost.CAUSEWhen you add a control to the Windows Form, the Windows Forms
Designer automatically regenerates the code for the InitializeComponent method. Therefore,
the code comments that you added are lost.REFERENCESFor more information about the Windows Forms Designer, visit the following Microsoft
Developer Network (MSDN) Web site:
Modification Type: | Major | Last Reviewed: | 2/10/2006 |
---|
Keywords: | kbvs2005swept kbvs2005applies kbprb KB836669 kbAudDeveloper |
---|
|