Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8397463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:47:55+00:00 2026-06-09T20:47:55+00:00

I have an application whose size is 16kb. After adding an icon resource through

  • 0

I have an application whose size is 16kb.

After adding an icon resource through the Project Properties menu, the application, as expected, increased to a size of 299kb.

Now, under Properties/Application when I set the Icon File to “Resource\IconName.ico” the file size again increases to 581kb.

Is this normal behavior? I understand that it increases when I add the icon as a resource, but not when I set the icon from the resources to the Application Icon.

Can anyone explain why this is happening?

EDIT:

Maybe a better question would be how can I set the Application Icon using an icon from the Properties/Resources section?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:47:56+00:00Added an answer on June 9, 2026 at 8:47 pm

    Yes, this is normal behaviour. Your icon isn’t being stored as a resource twice (as suggested in some comments), it’s simply being linked into the exe during compilation while also being stored as a resource. Since the icon is public-facing (i.e. explorer.exe accesses it directly when rendering the icon), you essentially end up with 2 copies of the icon in different formats:

    • One copy of the icon compiled directly into the exe in a Windows-standard format
    • One copy as a .NET resource

    If you really want to save this extra space, remove the embedded resource, change your application icon reference to point straight to the icon on disk, then, when you need a copy of the icon to assign to your forms, extract it directly from the assembly:

    var executablePath = Assembly.GetExecutingAssembly().Location;
    var icon = Icon.ExtractAssociatedIcon(executablePath);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GUI application whose main part is a QPlainTextEdit . It is
In my WPF application I have a CheckBox whose IsChecked value is bound to
I have a C# Windows Forms application, whose prototype was created on SQL Server
In my application, I have a listview whose list item consists of a TextView
I have a style applied to my whole application: AndroidManifest.xml: <application android:theme=@style/ApplicationStyle android:icon=@drawable/icon android:label=@string/app_name>
I have an application developed for Honeycomb (initially 3.0) and after the ICS is
I currently have an application in Mac Os X whose Real Memory footprint grows
I have a web application built in asp.net, which uses resource files to support
My new iPhone application have .ipa file size (by Archive) is 2.8 MB, which
I have a RelativeLayout whose size takes up all screen area that is available

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.