Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to assign executable's icon

How to assign executable's icon

Scheduled Pinned Locked Moved C#
tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mmithat
    wrote on last edited by
    #1

    Where is the application icon is assigned? So the executable that my program creates, will have the icon that i want. Thanks, ~Mithat

    C C 2 Replies Last reply
    0
    • M Mmithat

      Where is the application icon is assigned? So the executable that my program creates, will have the icon that i want. Thanks, ~Mithat

      C Offline
      C Offline
      Chris Jobson
      wrote on last edited by
      #2

      Select the project in the Solution Explorer, right-click and select properties, and there is a line for Application Icon. However, if it's a WinForms application the icon shown in the taskbar will be the one given by the main form's Icon property. Chris Jobson

      1 Reply Last reply
      0
      • M Mmithat

        Where is the application icon is assigned? So the executable that my program creates, will have the icon that i want. Thanks, ~Mithat

        C Offline
        C Offline
        CSharpTeam
        wrote on last edited by
        #3

        When compiling from the command line use the /win32icon command line option to csc.exe. When building in the IDE set the Appliction Icon option. You can find it by right clicking on your project in the solution explorer, selecting the properties menu item. Appliction Icon is under Common Properties - General. Cheers, Peter Microsoft C# Compiler Dev Lead

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups