How can I programmatically manipulate Windows desktop icon locations?

If I’m not mistaken the desktop is just a ListView, and you’ll have to send the LVM_SETITEMPOSITION message to the handle of the desktop. I googled a bit for some c# code and couldn’t find a example, but I did found the following article. Torry: …get/set the positions of desktop icons?. It’s delphi code, but … Read more

How to create a desktop icon with Inno Setup

In [Files] section, you install your giotto.ico to the application folder (you may want to install the icon only when the desktopicon task is selected). In [Icons] section, you create the desktop icon using the installed giotto.ico (when the desktopicon task is selected). #define SourcePath “C:\Users\PycharmProjects\GIOTTOconverter\dist” #define MyAppName “GIOTTO” #define MyAppExeName “GIOTTO.exe” #define MyAppIcoName “giotto.ico” … Read more

How do you select the right size icon from a multi-resolution .ico file in WPF?

I use simple Markup Extension for that: /// <summary> /// Simple extension for icon, to let you choose icon with specific size. /// Usage sample: /// Image Stretch=”None” Source=”{common:Icon /Controls;component/icons/custom.ico, 16}” /// Or: /// Image Source=”{common:Icon Source={Binding IconResource}, Size=16}” /// </summary> public class IconExtension : MarkupExtension { private string _source; public string Source { get … Read more

Sizes of frame icons used in Swing

Typical views for this Windows 7 based PC Note: @bobbel reports the same sizes are used for Windows 10. Frame – 20×20 Task Bar – 40×40 in task bar itself, hover app shows 20×20 Windows+Tab – 20×20 Alt+Tab – 40×40 in lower right, shrunken 20×20 in upper left. Task Manager – 20×20

How do you set the application icon in golang?

You can use a tool like akavel/rsrc in order to generate a .syso file with specified resources embedded in .rsrc section, aimed for consumption by Go linker when building Win32 excecutables. See as an example the lxn/walk application, which embeds other metadata in its executable. rsrc [-manifest FILE.exe.manifest] [-ico FILE.ico[,FILE2.ico…]] -o FILE.syso -ico=””: comma-separated list … Read more

How to change cursor icon in Java?

Standard cursor image: setCursor(Cursor.getDefaultCursor()); User defined Image: Toolkit toolkit = Toolkit.getDefaultToolkit(); Image image = toolkit.getImage(“icons/handwriting.gif”); Cursor c = toolkit.createCustomCursor(image , new Point(mainPane.getX(), mainPane.getY()), “img”); mainPane.setCursor (c); You can download a zip containing sample source: HERE

Change default icon

Run it not through Visual Studio – then the icon should look just fine. I believe it is because when you debug, Visual Studio runs <yourapp>.vshost.exe and not your application. The .vshost.exe file doesn’t use your icon. Ultimately, what you have done is correct. Go to the Project properties under Application tab change the default … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)