Re: Application icon

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Michael Sven (gpj38_at_dial.pipex.com)
Date: 10/18/04

  • Next message: George Birbilis [MVP J#] [9880]: "Re: Mono and J# Browser Controls"
    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
    >
    >


  • Next message: George Birbilis [MVP J#] [9880]: "Re: Mono and J# Browser Controls"

    Relevant Pages

    • ExtractIconEx
      ... Does anyone know how to use the ExtractIconEx, or any other, function to get ... parameter should be -N to extract an icon that is not the first icon. ... icons in my project that I add as Embedded Resource does not seem ... Regards, ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: Proper use of #getImageBlock in runtime [LONG!]
      ... When Dolphin reads an icon or bitmap, ... It can load it from a "resource" embedded in an executable file ... where the FileLocator is an instance of one of the subclasses of FileLocator ... We can define a PackageRelativeFileLocator which includes the name of a package ...
      (comp.lang.smalltalk.dolphin)
    • HLA v2.x and / or LASM suggestion: Win32 Resources
      ... With Microsoft's RC compiler, I've just noticed that it's less capable ... binary resource converted into readable, ... possible to create an icon or bitmap on-the-fly in the actual program ... make a separate tool and then all of them can share ...
      (alt.lang.asm)
    • Re: Single use of ICON in all forms
      ... > "Icon", but the Icon class does not have a FromStreammethod. ... > "Matt Berther" wrote in message ... >> Embedding the file as a resource is no big deal... ... Embedding it as a resource would still leave me with two ...
      (microsoft.public.dotnet.framework.windowsforms)
    • Re: Animating Tray Icon using Shell_NotifyIcon
      ... > The resource file bears the same name as the .dll, ... The Delphi IDE allows you configure an icon for your project and also ... More importantly, Delphi ... sorted ahead of MAINICON. ...
      (alt.comp.lang.borland-delphi)