|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Inserts an .ico file in the output file. This .ico file represents the output file in Windows Explorer.
You can create an .ico file with the Microsoft Windows Resource Compiler (RC). The resource compiler is invoked when you compile a Visual C++ program; an .ico file is created from the .rc file. The /win32icon and /win32resource options are mutually exclusive.
Seeto reference a .NET Framework resource file, or to attach a .NET Framework resource file. See to import a .res file.
To set /win32icon in the Visual Studio IDE
Have a project selected in Solution Explorer. On the Project menu, click Properties. For more information, see.
Click the Application tab.
Modify the value in the Icon box.
The following code compiles In.vb and attaches an .ico file, Rf.ico.
vbc /win32icon:rf.ico in.vb