Re: Application icon
From: Michael Sven (gpj38_at_dial.pipex.com)
Date: 10/18/04
- Previous message: Lars-Inge Tønnessen [VJ# MVP]: "Re: Server Error in '/' Application. .....resource cannot be found"
- In reply to: Lars-Inge Tønnessen [VJ# MVP]: "Re: Application icon"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 18 Oct 2004 18:40:24 +0100
Hi Lars-Inge
Thank you very much. That worked.
Regards
Mike
"Lars-Inge Tønnessen [VJ# MVP]" <http://emailme.larsinge.com> wrote in
message news:Od0BoJxsEHA.1924@TK2MSFTNGP10.phx.gbl...
> Sorry I'm not online when I'm writing this so I don't have a direct link,
> but here are the steps from the MSDN lib.
>
> Please search for "KB324969" in the MSDN lib (or Q324969).
>
>
> Knowledge Base
>
> This step-by-step article describes how to add an application icon to a
> Visual J# .NET application.
>
> The Microsoft Visual Basic .NET and Microsoft Visual C# .NET /win32icon
> compiler option inserts an icon (.ico) file in the output file, which
gives
> the output file the appearance that you want in Windows Explorer. The
Visual
> J# .NET compiler does not support the /win32icon option. To work around
> this, you can create a resource compiler script file for the icon, and
then
> create a resource (.res) file by using the Rc.exe utility. You can add the
> resource file to a Visual J# .NET application by using the compiler
> /win32res option.
>
> Add an Application Icon to a Visual J# .NET Application
> In Notepad, use the following code to create a resource compiler script
file
> that references the icon:
>
> 1 ICON "icon.ico"
>
> Save the file in Notepad as Icon.rc.
>
> Run the following at a command prompt to create a resource (.res) file
named
> Icon.res:
> rc icon.rc
>
> Compile the Visual J# .NET application and reference the icon resource
file
> (Icon.res) by using the /win32res option. You can do this from the command
> line or in the Microsoft Visual Studio development environment. To do this
> from the command line, run the following command:
>
> vjc /win32res:icon.res app.jsl
>
>
> To do this from the Microsoft Visual Studio development environment:
>
> Open the Property Pages dialog box for the project.
> Click the Configuration Properties folder.
> Click the Advanced tab.
> Add the following to the Additional Options property:
>
> /win32res:icon.res
>
> The resulting .exe file will have the appropriate icon next to it when you
> view it in Windows Explorer.
>
>
> Regards,
> Lars-Inge Tønnessen
>
>
- Previous message: Lars-Inge Tønnessen [VJ# MVP]: "Re: Server Error in '/' Application. .....resource cannot be found"
- In reply to: Lars-Inge Tønnessen [VJ# MVP]: "Re: Application icon"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|