Changes in a custom icon for a Windows form may not appear in the upper-left corner of the form in Visual Studio 2005 (914349)
The information in this article applies to:
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2002), Professional Edition SP1
- Microsoft Visual C++
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
SYMPTOMSAfter you change the custom icon for a Microsoft Windows form in Microsoft Visual Studio 2005, your changes may not appear in the upper-left corner of the form. This behavior occurs when the Icon property of the form is set to a custom icon file.
Note This problem does not occur in Microsoft Visual Basic .NET 2003 or in Microsoft Visual Basic .NET 2002.CAUSEThis issue occurs because the 16-pixel-by-16-pixel version of the icon that is used for the form has not been changed. By default, Visual Studio 2005 creates both a 32-pixel-by-32-pixel version and a 16-pixel-by-16-pixel version of new icons. By default, when you change an icon in Visual Studio 2005, the 32-pixel-by-32-pixel version of the icon is updated. Windows forms use 16-pixel-by-16-pixel icons.
Note This issue occurs in Microsoft Visual C++, in Microsoft Visual C#, and in Microsoft Visual Basic 2005. Both Visual Basic 2003 and Visual Basic 2002 use 32-pixel-by-32-pixel icons and are not affected by this problem.WORKAROUNDTo work around this issue, modify the 16-pixel-by-16-pixel version of the icon. To do this, follow these steps: - Start Visual Studio 2005.
- In Solution Explorer, right-click the icon file, and then click Open.
- On the Image menu, point to Current Icon Image Types, and then click 16x16 256 Colors.
Note If the 16x16 256 Colors option is unavailable, click New Image Type on the Image menu, and then double-click 16x16 256 Colors. - Modify the icon image by using the tools that are provided in Visual Studio.
Note This icon image is the icon image that the Windows form will use. - On the File menu, click Save FileName.
- On the File menu, click Close.
STATUS This behavior is by design.
Modification Type: | Major | Last Reviewed: | 4/14/2006 |
---|
Keywords: | kbnofix kbtshoot kbprb KB914349 kbAudDeveloper |
---|
|