Click here to Skip to main content
15,879,239 members
Everything / Icon

Icon

icon

Great Reads

by Ordiales
When no XP support is necessary. Better Icon structure arrises and easy conversion is allowed.
by dynamichael
Build an oct-tree from a color palette for a fast nearest color search
by Andy Point
Android Alert Dialog Tutorial : Working with Time Picker, Date Picker and List Dialogs In this tutorial we will discuss how to use dialogs and alerts in Android Apps. A Dialog is a small popup shown to the user to get some additional information from the user or ask him to make some decision. Alert
by Steffen Ploetz
Step-by-step instructions and source code snippets for inserting a bitmap (or a section of it) into an icon image.

Latest Articles

by Steffen Ploetz
Step-by-step instructions and source code snippets for inserting a bitmap (or a section of it) into an icon image.
by Steffen Ploetz
How to embed icons into Win32 programs without utilizing resources - useful for platforms without resource editor/resorce compiler, e.g., ReactOS. Learn the missing things about the .ico format.
by dynamichael
Build an oct-tree from a color palette for a fast nearest color search
by Herbert Lausmann
An IconBitmapEncoder that produces high-quality icons, written in VB.NET and C#, WPF

All Articles

Sort by Score

Icon 

29 Jul 2013 by Ordiales
When no XP support is necessary. Better Icon structure arrises and easy conversion is allowed.
25 May 2019 by dynamichael
Build an oct-tree from a color palette for a fast nearest color search
18 Jul 2016 by Andy Point
Android Alert Dialog Tutorial : Working with Time Picker, Date Picker and List Dialogs In this tutorial we will discuss how to use dialogs and alerts in Android Apps. A Dialog is a small popup shown to the user to get some additional information from the user or ask him to make some decision. Alert
27 Dec 2020 by Steffen Ploetz
Step-by-step instructions and source code snippets for inserting a bitmap (or a section of it) into an icon image.
21 Oct 2019 by Steffen Ploetz
How to embed icons into Win32 programs without utilizing resources - useful for platforms without resource editor/resorce compiler, e.g., ReactOS. Learn the missing things about the .ico format.
30 Dec 2010 by creizlein
I have been dealing with an issue for the last couple days and, despite the fact that long nights of read and debug didnt help, i wasnt able to resolve for myself, so im asking for a little help on this.Its related to icon association files, and first of all i must apologize if my english is...
30 Apr 2011 by Nish Nishant
Instead of using an icon, use an image file that's large enough. So you won't have to worry about scaling it up. That'd be a simple solution to your problem.
2 Mar 2012 by Richard MacCutchan
Please try searching for yourself; assuming you can spell Google.
6 May 2014 by Daniel Lieberwirth (BrainInBlack)
This describes a simple way to create interactive, bitmap based, buttons for WinForm applications.
22 Jan 2019 by Michael Haephrati
I am posting an answer because after some research I found a way. Using my method, an icon can be used as an integral part of a static library and such library can be used by any type of application, including a console one (which doesn't have any resource segment whatsoever). 1. Icon is...
22 Jun 2020 by Luc Pattyn
Hi, a Form has an Icon property, defining which icon may be shown at the lefthand side of a Form's title bar. an application has it's own icon, which you can specify through the project's property page; right-click the project in Solution...
18 May 2021 by OriginalGriff
Set it at runtime, when you decide "which instance" this run is: public MyForm() { InitializeComponent(); using (FileStream fs = File.OpenRead("App3.ico")) { Icon = new Icon(fs); } }
29 Jun 2011 by OriginalGriff
You cannot put an icon inside a TextBox: the clue is in the name. TextBox.It only holds Text.You can do it if you use a RichTextBox, or if you derive a user control from a TextBox. The former would probably allow the user to delete the icon, the latter would put it under your control.
27 Feb 2012 by ZurdoDev
The link is not working but the easiest thing to do is hover over it to see the tooltip and then use help if that is not enough.
2 Mar 2012 by Rajeev Jayaram
This is your previous quesion: how to drag and drop image[^]Don't get offended. You should stop asking such silly questions. This will not get you any where. Grow up and try not to be lazy.Google is your friend.
19 Jun 2012 by Sergey Alexandrovich Kryukov
Sure, you can use Visual Studio, Visual Studio Express (free of charge) or trialware...
10 Jan 2013 by fjdiewornncalwe
Rather than posting this as a Q&A question, you might be better off posting this as a comment/question at the bottom of the article in question. That way the author of the article will be notified of your question via email. In this Q&A forum it is very unlikely that the author will see it.I...
29 May 2013 by wcb2@cornell.edu
I thought of a very easy work-around that might work for others. My underlying problem was due to how Windows caches the icons of application shortcuts. This was preventing me from changing the taskbar icon at runtime. Which is certainly possible. So instead of having the start shortcut pointing...
4 Mar 2015 by OriginalGriff
Depends what you want to do with them.FOr personal stuff, I like http://www.softicons.com/[^], which allow personal use (if not commercial).But if you want an icon for your commercial app, then you are probably going to have to pay, or design your own in order to get anything remotely unique.
31 Mar 2017 by Michael Haephrati
Is there a way to embed resources (such as icons, dialogs) in a c++ (Win32 API) static library?My purpose is to embed an icon in the static library in a way that functions that use LoadIcon will work as if it was a normal .exe so the main application can only link to the static library and...
2 Feb 2021 by OriginalGriff
This is going to probably sound a but brutal, but ... it isn't, not really. Quote: I have no idea about coding That's the problem. Quote: I searched on google a lot That's not the solution. Quote: I still don't manage to get it done like I want...
24 Mar 2010 by DLChambers
This value is readable viaSystem.Windows.Forms.SystemInformation.SmallIconSizeHow does one *set* this value?Thanks,-Dave
9 Jul 2010 by costin v
Im trying to save an icon (that was extracted from .exe resource) on a Windows CE 5.0 device. CF.NET System.Drawing.Icon has no Save method. GetIconInfo gives a ICONINFO structure. If I could get the DIB bits from the Color and Mask bitmaps in ICONINFO, then I could use this to make a...
13 Jul 2010 by costin v
Well I answered my own question. I took me like a week to figure this out and I really appreciate how easy .NET is now.To get the byte array you have to use CreateDIBSection and then BitBlt (you might be able to just use Graphics.FromHdc to DrawImage instead of BitBlt). I tried to use...
27 Aug 2010 by Niklas L
It doesn't look like the editor can handle 32 bit icons. At least I'm not able to add that type of image to an icon using VS2010. It's probably because of the alpha channel.As for question 2, I'll have to pass.Have you tried replacing the icon with a different one not having the 32 bit...
27 Aug 2010 by weylspinor
Hi,I'm creating a Win32 Application in Visual Studio 2008. When you create a new project, a resource folder is created that contains 2 icon files ending in .ico. One of the icon files is named 'small.ico', and the other is named 'project_name.ico'. I have two questions regarding these...
30 Dec 2010 by #realJSOP
Try this:http://www.intowindows.com/change-file-type-icons-in-windows-7-with-types/[^]Apparently, changing a file's icon is problematic when you try to do it through the registry on Vista/Windows 7.
1 Jan 2011 by creizlein
I have been playing around with this Types program, and i did found some interesting results, whatever i search the mentioned SSA extension, it display a blank icon for it, aka empty, and when i go to change the icon it does change, but then, all other application that where associated to that...
3 Mar 2011 by Matchlighter
This may seem like a silly question, but how do I embed an icon in a VB.Net project to make it usable by Windows file associations? Even when I select "Embedded Resource" for it, I can't find it in any resource viewing programs. How do I make it available for those programs and for file...
3 Mar 2011 by Sergey Alexandrovich Kryukov
Do you think it works through icon or looking at the executable's resources? Strange idea.As your tag is VB.NET you might want to see this:File Association in VB.NET[^];File Type Creator[^].Form more information, Google:http://en.lmgtfy.com/?q=file+accociation+%22VB.NET%22[^]or,...
2 Apr 2011 by AdrianoAutino
I am producing a software product, the core of which is a msaccess mde.On xp pro, the AppIcon property shows correctly the custom icon, both:- on the top-left of the application window- on the taskbarOn windows 7, the same property only shows the custom icon on the application...
2 Apr 2011 by Dave Kreskowiak
Icons come in many different sizes, ranging from 16x16 to 256x256, and color depths, including 8, 16, 24, and 32 bits. You can have multiple icons or various sizes and depths in the same .ICO file.The problem seems to be that you don't have an icon of the appropriate size and/or color depth...
2 Apr 2011 by AdrianoAutino
Dave, thanks for your answer.I agree with you about using Access. But my application grew up during more than 10 years on that environment, and it is now worth mayeb 10,000 hours of development... to remake it on web multiplatform technology would be great, but very expensive.However...
30 Apr 2011 by Groulien
The situation:A blank form and one large button.An icon file as a resource.The problem:I use the icon as an image for the button, but it doesn't scale up.How can I (programmatically) choose a larger version of the icon?
4 Jun 2011 by Dave Kreskowiak
Check in TaskManager and make sure your app is still running before you launch another one.Once you determine if the app is still running or not, then you can proceded with trying to figure out what happened.
17 Jun 2011 by Keith Barrow
You should take a look at this thread on StackOverflow:http://stackoverflow.com/questions/384931/how-do-i-get-an-icon-from-a-png-image[^]Personally, I'd convert the png to ico (the thread has a link to at tool to do that) as it is the path of least resistance, but it is always good to have...
29 Aug 2011 by Member 8142674
ho to change the notifiicon on click mouse?? im usin the c# help me please but this code does not workthanks all for respondingif(NotifyIcon.Icon == this.eyeIcon){ NotifyIcon.Icon = this.trafficIcon;} else{ NotifyIcon.Icon = this.eyeIcon;}
29 Aug 2011 by #realJSOP
You're doing it wrong.I know, this answer may seem vague or even obtuse, but the quality of the answer is directly related to the quality of the question. Hint - we need more info.
5 Sep 2011 by Nick Alexeev
Colleagues,...
5 Sep 2011 by Sergey Alexandrovich Kryukov
The class System.Windows.Forms.ImageList is designed to be used with bitmaps, not icons. Where it is used (images for TreeView and the like), icons are not needed. If you really need icons, it means you don't need ImageList; use any container you prefer from the namespace...
25 Nov 2011 by Ștefan-Mihai MOGA
I created with Visual C++ 2010 a MFC application with ribbon. I have added buttons to this ribbon, but I do not know how to add images to these buttons. I tried editing writelarge.bmp file from the project, and setting the index of image on these buttons, but now the ribbon icons looks very...
8 Dec 2011 by mahendren
You may want to draw an image (for search or to show busy)see this link:http://www.codeproject.com/Messages/3010929/Re-Icon-in-a-textbox.aspx[^]
27 Jan 2012 by chefsponk
I want to draw the default animated cursor (hourglass in XP, circle since vista) on a form.Theoretically, this is no problem using LoadCursor(NULL, IDC_WAIT) and DrawIconEx with the special parameter istepIfAniCur.My problem is: How to determine the number of frames of such a system cursor...
4 Feb 2012 by Dalek Dave
I have a web page and a 'favicon.ico' in the same directory.I am using this code to point to the icon.All things being equal I should have the favicon showing...
4 Feb 2012 by Christian Graus
Have you tried putting the full URL in the href ?
4 Feb 2012 by thatraja
Which browser? IE? check out the table(s) in below page.Check this wiki page http://en.wikipedia.org/wiki/Favicon[^]
2 Mar 2012 by fjdiewornncalwe
Icon Archive
2 Mar 2012 by Orcun Iyigun
One of my favourite one is: http://www.iconfinder.com/[^]
17 Mar 2012 by OriginalGriff
If you're trying to make the icon show in Windows Explorer, that's not really feasible.Explorer (or rather, the shell) will only read icons from the file for EXEs and shortcuts. All DLL files will have the standard DLL icon, no matter what you do to the DLL.If you really want to, you can...
1 Apr 2012 by mohammadghaderian.bp
HiI have a big problem that I can not solve it until now.I work on project that this application work with a usb lock.because usb lock API writed with COM, vendor of lock give me a "Manifest.res" file that I should go to properties window in visual studio, on Application tab and insert...
14 May 2012 by Darkcharm
Now I need to enum all the "ICON" on the desktop such as "My Computer" and other .lnk s.After that I will draw the ICONS to a HDC and get the image data,also,I need the dest file of the .lnk s..How could I do ? I read some about Windows shell but I still don't know what to do...
19 Jun 2012 by grayalphawolf
Hi all,I need more icons ... individualeIs there a way to create your own and add them to the present?Thank you in advance for your answers ...(Most of all please reply in German, because my English is more than just bad ...)Greetings
1 Jul 2012 by Rokas Gustys
Anyone know of a way of converting an icon to a bitmap that would be larger than 32 x 32? I am trying to display the icon that a user chooses, but 32 x 32 is a tad bit too small. I know I need an icon to be larger than 32 x 32 in the first place, which I do, but the Icon.ToBitmap seems to only...
5 Aug 2012 by Rokas Gustys
Icon.ToBitmap...
24 Jul 2012 by gaurav786mishra
can someone tell me how can i show icon of my desktop application in taskbar when system reboots .at present my taskbat icon appears when i double click my desktop shortcut icon then my application starts and then icon comes in taskbar and disappears when my system is restarted .again i have...
24 Jul 2012 by snorkie
There are two Windows registry keys that could help your issue.HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunANDHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceOne key only runs the command one time and the other runs it every time. So if you want your program to start...
25 Jul 2012 by gaurav786mishra
put a shortcut to your application in the windows autostart folder? N.B: This starts your application after windows login.
2 Sep 2012 by ts89
I want to add an icon to the WPF window titlebar, but my icon is a bit wider than the fixed size of the icons accepted by the titlebar (16x16) Is there any way to add a wider icon to the titlebar?
2 Oct 2012 by Petrotheos
To find the .lnk files use this %userprofile%\desktop\*.lnkFindFirstFile functionFindNextFile functionFindClose functionTo manipulate .lnk filesShell LinksYou may needEnumResourceTypes functionEnumResTypeProc callback functionTo draw to device contextDrawIcon...
16 Oct 2012 by philiplobo
i want different icons in my dialog box , is it possible ????
23 Oct 2012 by Tarek Ziani
Change it from "Icon" ..... Browse : Select the "ICO" File and you are done !
26 Dec 2012 by Schehaider_Aymen
I found the answer, so this is how I proceeded ://header fileprivate: CImageList m_imagelist; CToolBar m_toolbar;&// source fileenum { width = 20, height = 20 }; // width and height of one button imagem_toolbar.Create(this);// create the image...
10 Jan 2013 by darius_la
I wrote a post in a comunity. Than I found the answer with your class.I want to ask wether I may publish the class, so the members of the forum don't have to log in in Code Project.Nice Greetings, Darius Arnold, Germany
8 Feb 2013 by Tapirro
Hi, I have problem with saving bitmap as an .ico file. Standard icon.save reduce color depth from 32 to 4 bpp which destroys good look of my picture. Is there any possibility to change that? I´ve tried bitmap save as imageformat.icon but this return gdi++ error.this is my code:Image...
3 May 2013 by Member 4347041
I have made an icon 16x16, 32x32, 64x64 and 128x128 for my app. This icon was made in visual studio, all icons are in the same file,... Now i added my icon to my app: Project --> xxx Properties --> TabPage: Application --> added in Icon and manifest. Why i only see icon 16x16 for...
3 May 2013 by Sergey Alexandrovich Kryukov
The icon is only really needed when you want to tell OS what do paint to represent your application be the means of OS. Therefore, it has a transparency feature and a feature which helps you to pack several different bitmaps in one icon object. Reportedly, Windows uses the following set of...
17 Sep 2013 by DaveyM69
Have you had a look at this[^]?
24 Feb 2014 by zubair30
Friends,I am making a windows customizer. I want to change desktop icons like My Computer Icon, Documents Icon, Recycle Bin etc. and other icons. I can change folder icon with registry.Any help?
24 Feb 2014 by karthik Udhayakumar
Hello Zubari,Suggest you to follow this articlehttp://www.wikihow.com/Change-or-Create-Desktop-Icons-for-Windows[^]All the Best
13 May 2014 by Member 10111284
Hi is it possible to change the default icon of a OpenFileDialog in code?This is the code that I have written at the moment, but there isn't a property value for the icon. Is this a limitation or is there a workaround without having to create a control myself.public static FileInfo...
28 May 2014 by hansoctantan
Hello everyoneCan someone please show me how to change the mouse icon. I have 2 PNG files 1 is for dragging (OnMouseDown Handler) and the other is the default pointer.Found this and it has an error, don't know how to fix thisDim memory_stream As New...
4 Jun 2014 by Vaibhav_J_Jaiswal
Hi AllI am stuck at one point. I have made an application in which I want to show the progress status of a task in percentage in the tool-tip of its icon. How can I do this?Below is the creation procedure of Icon:HINSTANCE hInstance = AfxGetResourceHandle();CString strToolTipText...
4 Jun 2014 by KarstenK
you cant update it!!!So delete the old tooltip and create a new.
15 Oct 2014 by MeritUSA
I have a WinForms program with multiple forms. Depending on the parameters passed at launch time a different form will be run. I would like the form opened to override the icon on the taskbar instead of the default icon from the application.
15 Oct 2014 by ZurdoDev
For future reference, a quick google search would have given you the answer. Also, you can learn a lot from intellisense if you would have just typed in your form name and then a dot you would have seen Form.Icon.See...
24 Feb 2015 by Member 11474066
I just don't know where to insert the code.And which code.
4 Mar 2015 by charlieg
Fellow developers, any suggested sources for icons? I've done my google searching, but there is so much debris, mostly links to sites then on to paid stuff.cg
5 Mar 2015 by charlieg
Peter - good source. I still cannot get over the flat icons. I guess there is some reason for it.Griff - that's a good source, but a little pricey (I just need one set of icons).HOWEVER, they do have an image to icon generator that will create my set of icons. So, I just need to go...
7 Mar 2015 by Brady Kelly
Is there a nice, free set of icons and/or images I can use in my WPF apps? I have the VS2012 image library, but visually searching that monster for even basic things like standard message box icons takes hours. I can't seem to find anything, and I need to find things quickly, or just forego...
7 Mar 2015 by Afzaal Ahmad Zeeshan
Yes, you can find icons made from third-party designers, and then add them to your project having WPF framework. For example, from this answer you can use already built icons from Microsoft if you're having a purchased version of Visual Studio. Read more here...[^]. If you read this answer, then...
7 Mar 2015 by Peter Leow
Refer: Microsoft Azure, Cloud and Enterprise Symbol / Icon Set for Visio, PowerPoint, PNG[^]
8 Mar 2015 by Jochen Arndt
I'm often using icons from the Open Icon Library[^]. They are organized into groups, have descriptive names, and can be previewed using the Windows explorer.There are also special download packages for the three main licenses Public Domain, GPL, and Creative Commons.GPL icons require...
11 Jun 2015 by Lance Contreras
Create an easily resusable IconBlock (TextBlock that display's an icon)
30 Mar 2017 by Jochen Arndt
You might have a look at this SO thread: visual c++ - VC++ resources in a static library - Stack Overflow[^].Especially the second solution looks interesting (I have never done such so far). That solution is also referenced at Linking resources from a static library | Tech Leaves[^].
6 Nov 2017 by Member 13503586
I'm learning to use DEV-C++ 5.11, hoping to make a program I have in mind. Before I go any further, I would like to change the icon for the resulting program, but it doesn't seem to work. Here's what I did: 1 - I start a new project (File - New - Project - Windows Application) and name it...
6 Nov 2017 by Jochen Arndt
Within your created WinMain function the application main window is usually registered calling RegisterClassEx: WNDCLASSEX wc; // ... wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION); RegisterClassEx(&wc); HWND hwnd = CreateWindowEx(...); IDI_APPLICATION is the resource ID of an icon contained in...
6 Nov 2017 by Member 13503586
I finally figured it out! I replaced the following two lines wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); /* Load a standard icon */ wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION); /* use the name "A" to use the project icon */ with wc.hIcon = LoadIcon(hInstance, "A"); wc.hIconSm =...
22 Mar 2018 by Member 12561559
I have a datable that I have populated with data from SQL server and a datagridview that is bound to that data. Due to several queries that take some time to populate various columns in the datatable, cellformatting then picks those up and displays an icon for the resulting column (about 8...
25 Apr 2018 by Frederic GIRARDIN
is there a way to set .NET Dll icon ? Project panel do not allow this field. i don't know if assembly can do this... What I have tried: i search on for 1hour on the web.
25 Apr 2018 by User 7429338
Only executables have an icon, DLL's don't support this.
11 Jul 2018 by Member 13857021
Hello, I am in search for how to add icons to the notifyicon contextmenu items. The notifyicon and contextmenu and menuitems all are added from the backend code only and not from the drag and drop. Kindly help. Thank you. What I have tried: Nothing to check. I have Googled. NOthing found.
11 Jul 2018 by CHill60
I believe you have to draw the menu yourself. There is an article here on CodeProject that gives a detailed example that could be adapted - Working with OwnerDraw Menus in VB.NET[^]
28 Aug 2018 by Richard Deeming
You can't. If you could, it would be trivial for malicious sites to trick users into thinking that the dialog was a system-level message. Also, showModalDialog was removed from Chrome in 2014[^], and from Firefox in 2017[^]. It's deprecated in IE11, and not supported in Microsoft Edge. There...
16 Nov 2018 by Member 14056208
I have a little collection of movies placed in folders. I placed movie poster in each folder, and recently, I placed an icon (converted from that poster thru a software) in each folder, and i want that each folder will look from the icon placed in each of them. Is there a .bat file, or any...
27 Nov 2019 by Johnny J.
Hi all I'm doing (yet another) Instagram application, and I need to get hold of a set of nice, simple and stylistic icons. Only thing is that I need to get them as single files with these requirements: * PNG format * Transparent background * Preferably 32x32 pixels You may ask: Why don't you...
22 Feb 2019 by Richard MacCutchan
See Solution 1 in Sound on/off menu tool strip images[^].
22 Jun 2020 by Choroid
I am using Visual Studio 2019 v 16.6.2 with Frame Work 4.7.2 on a Windows 7 64 bit machine I am coding in visual basic NOT C# Icon is 32X32 with 32 bit depth created with GreenFish icon maker I know how to set the icon for a form using the...
22 Jun 2020 by Choroid
Well this is a kick in the pants A 7 year old post on SO [^] Link to SO Code I used Public Sub SetIcon() InitializeComponent() Icon = Icon.ExtractAssociatedIcon(System.Reflection.Assembly.GetExecutingAssembly().Location) ...
2 Feb 2021 by Richard MacCutchan
You may find that Support – Official WordPress.com Customer Support[^] will get you an answer.
24 Feb 2021 by Member 15082031
I am having the exact same issue but I never realized that it was happening because of a "Shortcut". I noticed this behavior when I would pin my application to the windows 10 task bar. If I don't pin the application, I can simply change the...