Click here to Skip to main content
15,888,454 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 Title

Icon 

11 Nov 2017 by Herbert Lausmann
An IconBitmapEncoder that produces high-quality icons, written in VB.NET and C#, WPF
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[^]
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?
9 Jun 2021 by shiva_yn
iam create a tray NotifyIcon application using Hardcodet.Wpf.TaskbarNotification. Its running perfectly in debug time. after create the setup for that application, it is Installed successfully completed. Now screen not show the tray...
7 Jun 2021 by Richard Deeming
The icon is most likely hidden in the "overflow" menu. Customize the taskbar notification area[^] The end user will need to change their settings to show your icon. You cannot do that via code or the setup, because it's up to the user to decide...
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
24 Mar 2010 by DLChambers
This value is readable viaSystem.Windows.Forms.SystemInformation.SmallIconSizeHow does one *set* this value?Thanks,-Dave
24 Mar 2010 by William Winner
The SystemInformation class only returns information about the system environment. None of the members of the class can be set.The SmallIconSize, I'm assuming, is just to tell Windows what size of icon to use for the details and list views in the explorer window. I'm not sure why you would...
16 Sep 2013 by ellasaro
So I have this weird problem,I wrote a program in Visual Studio 2010.At first I configured it so the binary would have an icon, lets call it icon A. Then I changed the configuration again and changed the icon to icon B. The problem is that if I copy/move my binary to my desktop the...
17 Sep 2013 by DaveyM69
Have you had a look at this[^]?
17 Mar 2012 by mohammadghaderian.bp
HiI want to apply a icon to my project but i have a big problem.I must go to properties in visual studio then application tab.Then choose icon from Icon filed.But my big problem is Icon filed is Disable because i use a com dll in my project I must use second item ("Resource file") and...
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...
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.
24 Feb 2021 by wcb2@cornell.edu
I have a Windows 7 application where I need to change the icon displayed on the main form and the icon that is displayed by Windows on the taskbar at runtime. In code I am simply changing the Form.Icon property and this works no problem if I run the app from the EXE. The icon changes in...
29 May 2013 by Sergey Alexandrovich Kryukov
Please see my comment to the question. Why?Now, just some notes. The form icon is a different thing, you can really change it easily during runtime. It may even make some sense (different mode of operation, different part of functionality). The icon shown in the Taskbar is a different thing,...
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...
2 Jul 2020 by Member 14621376
Application won't show you taskbar in runtime until you have any shortcuts to it. If you get rid of all shortcuts and run from Runtime folder, it will work fine... But this is not what we need. nobody anywhere didn't provide for solution what......
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...
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.
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 =...
11 Jun 2015 by Lance Contreras
Create an easily resusable IconBlock (TextBlock that display's an icon)
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...
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...
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[^].
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...
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,...
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
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[^]
4 Aug 2015 by dmihailescu
A windows explorer extension for easy binary/text file comparisons and calculating the MD5, SHA1, SHA256 hashes.
4 Jun 2011 by Member 7928594
HiI hope someone will be able to solve my problem...I develop winForm application,when it being minimized - it's supposed to appear as an icon instead of taskbar. My code:private void BaseForm_SizeChanged(object sender, EventArgs e) { notifyIcon1.BalloonTipTitle =...
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.
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...
2 Mar 2012 by Irwan Jayadi
please give me an address for download icon
2 Mar 2012 by Richard MacCutchan
Please try searching for yourself; assuming you can spell Google.
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.
2 Mar 2012 by fjdiewornncalwe
Icon Archive
2 Mar 2012 by Orcun Iyigun
One of my favourite one is: http://www.iconfinder.com/[^]
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
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.
16 Oct 2012 by philiplobo
i want different icons in my dialog box , is it possible ????
16 Oct 2012 by Mukesh_Chauhan
yes. you need to update your icon in resource file
16 Oct 2012 by Anandkumar D
Import the Dotnet supported icons in resources and use those icons......... Imported icons will be available in forms properties.
23 Oct 2012 by Rahul K Singh
In Application Tab of Project property Icon--> BrowseSelect "ICO" file and Rebuild the project. It will change the Icone of exe.Addition from another answer by the same posterUse Custom MessageBox. It will be just a another windows Form which will be called by ShowDialog. Use...
23 Oct 2012 by Tarek Ziani
Change it from "Icon" ..... Browse : Select the "ICO" File and you are done !
23 Feb 2015 by Member 11474066
Hi there, does any of you have experiences with Fontello, Font Awesome or sites like 'em?I want to insert some cool icons in my navigation bar.HTML -> http://pastebin.com/ybAm9PyTCSS -> http://pastebin.com/5P7tPhi8THIS THE SITE -> http://puu.sh/g9Fv2/1424ac99b3.png
24 Feb 2015 by Member 11474066
I just don't know where to insert the code.And which code.
8 Dec 2014 by Member 10730024
Hi,I tried to implement the default MFC-Icon in an Menu. Got it, but unfortunatly, the background of the icon is NOT transparent. why not and how can I set it to transparent?my source code:CMenu* mmenu = GetMenu(); HICON hIcon =...
28 Aug 2018 by Leonardo Hernández
By JS I'm open a modal popup, But i need to change the IE icon to this page. How I can do that. What I have tried: I'm opening the pages this way. window.showModalDialog("../AccessStudyTemplate/AccessStudyTemplate.html?id_gdm_study_index=" + id_gdm_study_index + ';isArea=' + area, "",...
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...
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.
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 2010 by Brill.Kuo
Hi,Some icons on the desktop such as "My computer", "Control Panel", are no different from others. So I want to add this kind of icon to the desktop. How can I implement this?Also, can this kind of icon can be changed dynamically? e.g. when network connection disabled, the icon shall be...
7 Dec 2010 by vivekse
Hi,You can create icon on desktop to create setup with visual studio.For this you can refer this link.[^]
8 Dec 2010 by User 7429338
To add a shell icon, you can do the following:First we create the shell icon.-- Backup your Registry first.In the windows registry, go to HKEY_CLASSES_ROOT\CLSID and make a new key named {D46C1FE2-7F18-41D0-6250-848C1D003400}This name is just an example, other names will work...
29 Jun 2011 by cmm_cmm
how to adding icon inside textbox
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.
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[^]
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...
18 Nov 2018 by Member 14056208
@CHill60 thanks for the reply. I tried If [%1] == [] goto :eof ECHO [.ShellClassInfo] >%1\desktop.in ECHO IconResource=C:\icon.ico,0 >>%1\desktop.in move %1\desktop.in %1\desktop.ini attrib +S +H %1\desktop.ini attrib +R %1 but may question is this if I may, in the code the location of icon...
2 Feb 2022 by shiva_yn
I designed a WPF application, its add a tray icon in task bar. whenever system startup, the icon shows notification. its working correctly. I create the setup file, using windows standard installer. in setup, I added my exe in application...
15 Jun 2021 by Maciej Los
Follow these steps: Visual Studio Feedback[^]
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...
18 Nov 2018 by XTAL256
Hello, I have some code that uses GDI+ to convert an icon to grayscale*. However, when transparency (i.e. alpha channel) is involved, the resulting icon seems to use pre-multiplied alpha - rather than normal alpha - making the transparent pixels look darker. * Create GDI+ Bitmap from HICON,...
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...
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...
24 Apr 2013 by Dhiraj Pallin
I've made an icon in Visual Studio that has several sizes in it including 20x20 and 16x16, to account for different DPI settings.The problem is that when displaying the small window icon, and the Systray icon, Windows is selecting the 20x20 icon and scaling it horribly down to 16x16, instead...
24 Apr 2013 by Dhiraj Pallin
Was accidently using LoadIcon() which tries to load the big sized icon. Switched to LoadIconMetric()
24 Apr 2013 by Sergey Alexandrovich Kryukov
I would say, doing so is a wrong idea. Why ICO files are needed at all? This is the way to pack few versions of the icon in the same icon object, so OS could pick up the right one, depending on the view, presently, one of the: 16×16, 32×32, 48×48, and 256×256. OS knows what to do. That said, the...
14 Mar 2023 by Yount_0701
I'm writing a program which need to load icon resource from memory, there seems no direct windows API can do this work. the icon file was transmit by network, my program receives the data of the file, and store this data in my program buffer, I...
13 Mar 2023 by CPallini
I am afraid it won't be an easy task. You might have a look at this article: Icons | Microsoft Learn[^].
14 Mar 2023 by Rick York
I realize that you wrote you don't want to save the data to a file but I think that would be the easiest way to do it. Maybe looking at how an image handling library does it will help you. Here's one that I use all the time and it handles icon...
8 Jul 2021 by Chinedum Ezeozue
I'm done with almost every other setup for my app, now I've been trying for hours to figure out how I can display weather icons for my app according to its city's response but I still have no idea how to do that. I've searched several sites for...
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...
2 Feb 2021 by QUEEN LISA Her Insta: lalalalisa_m
Hello everyone ! I have no idea about coding but I searched on google a lot but I still don't manage to get it done like I want. I want to create a table with colorful icons ( Twitter, phone, headphones), they should also have some animations...
2 Feb 2021 by Richard MacCutchan
You may find that Support – Official WordPress.com Customer Support[^] will get you an answer.
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...
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...
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...
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...
2 Jul 2012 by Sergey Alexandrovich Kryukov
It makes no sense, usually. Well, how larger? The bitmaps are usually too small; sizes of 40x40 or 64x64 can be considered as very big, you hardly can find any bigger. Also, makes sure you have a legal rights to use some available bitmap the way you want.But the most important factor is...
5 Aug 2012 by Rokas Gustys
Icon.ToBitmap...
31 Oct 2010 by After2050
This article demonstrates how to use images in web and the things you have to take care on using them.
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...