application icon image doesn't show in taskbar in "small icon" setting - vb.net

I have a vb.net 2008 application which has its corresponding icon.
The icon shows correctly except in the taskbar when the "small icon" setting is on.
My vb.net project includes a .ico file which when I see in the IDE includes 16x16, 32x32, 48x48, 64x64 and 256x256 bitmaps, in 4, 24 and 32 bits, also 3 .png images in 256x256 32 bits each.
I made the icon myself simply using a 64x64 bitmap and then converting it to .ico, and assigning it to the application in the project properties. I thought windows would use and escalate the corresponding image, it shows even in the file explorer properly in the small icon form, but not in the taskbar.
What's going on or what do I need to do? I'm not very familiar with this. Thanks...

You need to have the correct size/bit-depth version in your icon file for whatever context WinForms wanted (e.g. the form's title bar icon, the system tray icon, the taskbar
icon, or the desktop shortcut icon) to insure it will work. You have to maintain the transparency too.
Read the following article.

Related

How to create disabled icons for Eclipse plug-in

I'm referencing the official Eclipse guidelines located here, which in the section "States" contain the information on "Creating the disabled icon state".
Sadly, the first sentences in this section are:
To create this state, you will use the "eclipse_disabledrender_R3V6.atn" action in the Eclipse-style Actions palette. Click here to download the Eclipse-style Actions.
Load the "eclipse_disabledrender_R3V6.atn" into the the Adobe Photoshop Actions palette.
I have no Adobe Photoshop, so I have no idea what that file does (I tried opening it as a text file, but it's nothing readable).
The image for this section is not accessible either, so any information on how to create disabled icons is lost (to me).
I assume it's something like "change saturation to -50 and brightness to +50", but I'd love to have the original actions for a consistent look.
How do I create disabled icons for a given icon?
I managed to get myself a copy of Adobe Photoshop, and this is what the action says:
It's German, so I'll translate the relevant part for whoever might have the same problem:
Hue 0 (no changes)
Saturation -80 (scale seems to be -100 to 100, with 0 the default)
Brightness +40 (on the same scale)
For some reason this action paints a rectangle around the finished icon (RGB 193, 193, 193), but I couldn't find a disabled icon where this was actually done.

How to export specific portions of a psd or jpg file?

I have bought graphics from a graphics designer. He gave me a psd file with buttons and logos all in the same file. In the file there is a specific button I want to use for my project. How would I export only the button portion of the file to a png or jpeg?
using the eyeball toggle buttons on the right-hand panel, hide all elements you don't want
then go file > save as
give it a name and type of file you want to save as
What you can do in order to get just the single button or logo is something like what Miles said, but that might leave you with some extra blank space that you don't want.
Turn off all layers you don't want to save.
Select the crop tool and crop exactly what you want to save.
File - > Save for Web - > Select PNG or JPG and all other settings
Hope this helped!
here a little contribution :
calibrate your screen, check your color profile, turn you image in RGB mode or Grayscale (8 or 16 bit). ;)
Turn off layer you don't want to save, on windows shortcut "ALT+ left click" on layer eye you want to keep.
trim layer with menu/image/trim... Transparent Pixels
File / Save for Web / Select PNG-8 check transparency, click "Save..." choose a name and save button.
You can use shortcut for do it much more faster.
Of course you can make a Scripts in Scripts panel for repeat this action many times.
You can use free extension like cutandslice.me for export to different device in one shot.
Best wish.

Why does VS2013 put white text on dark highlight when printing source code?

When printing to PDF from Visual Studio, all my .cs files get printed with black text on white background. On the other hand, the .css and .cshtml files get printed with white text on a black highlight. The first mode is usable while the latter isn't. However, both cases seem to ignore the Tools > Options > Environment > Fonts and Colors > Printer configuration, which is configured to colour syntax normally on printing and has no configuration whatsoever especifying a black highlight.
On the physycal side we have an even stranger output: when physically printing on a black-and-white laser printer we got a black text on white back (result is displayed on the right-hand side of the picture below). When printing on a colour laser printer we got a white text on black highlight (on the left-hand side of the picture).
Changing the Visual Studio Theme from Dark to Light has no effect
Using a third party tool such as VSCodePrint also prints the code with a black highlight
I have used both Adobe Acrobat Pro PDF printer and CutePDF Writer, but both give me the same results as the left-hand side of the picture in the PDF (digitally, of course)
Any contribution is welcome as there is little to no information on the Web about this.
According to visual studio editor team, it was a confirmed bug on 2012. There appeared to be a resolution (kb download) to fix that, but I don't see it being "applyable" to VS2013. See: http://connect.microsoft.com/VisualStudio/feedback/details/760291/vs2012-with-dark-theme-prints-code-with-black-background

WinPhone 8 AppBar icon size

The guide for Windows Phone 8 app bars states that AppBar button icons should be 48x48px. It also says that a bunch of sample icons can be found in C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Icons.
But the images in there are 76x76px. And they work fine, at least on the emulator they do.
So what's the proper size?
So what's the proper size?
76x76, because then you support higher resolutions. If you use 48x48, it'll be scaled up for WXGA and 720p, rather than down (for WVGA), with the quality being slightly worse.
The factor is roughly 1.6, which is the same as for the Tile Sizes
And to prove the point, here's our application, using 76x76 application icons: Skype | Windows Phone Store
They are 48x48px as the people above have said, but the 76x76px ones you are seeing are for devices with a different screen size from that set by Visual Studio as default.
If you are looking for any additional icons do check out Templarian's open-sourced icon project http://modernuiicons.com/. The .zip includes light and dark themes icons as well as the initial Expressions Blend .design file and the .xaml coding of the icon.
They have to be a minimum of 48x48, you can have a bigger (square) size and it will scale down accordingly.

Convertig an image to an .ICO file without loosing color depth (and without installing additional utilities)?

In a form I have an ImageList named MainLogoImageList containing a 100x100 pixel 32-bit colordepth image. That is my app logo.
I am too lazy to set up an icon editor and edit an icon of that logo, or convert the image to an .ICO file. (Ergh, well, I am not allowed to install custom utilities.)
To set my forms' icon, I use
Icon = IconFromImage(MainLogoImageList.Images(0))
in the OnLoad event handler to set the window icon.
In my about box, i have a PictureBox with no image. In its OnLoad event, I use
LogoPictureBox.Image = MyMainForm.MainLogoImageList.Images(0)
Icon = IconFromImage(MyMainForm.MainLogoImageList.Images(0))
to set the About box's icon and content.
So far, so good, the icon looks pretty good for a being created from a 100x100 pixel bitmap.
Is there an easy "no utility required" :-) way to get the icon that is returned my IconFromImage saved into an .ICO file so that it will keep the color depth when loaded as the app icon? I want to use exactly the icon that IconFromImage creates.
Saving it using
Dim S As New FileStream("MyAppIcon.ico", FileMode.Append, FileAccess.Write, FileShare.Write)
Icon.Save(S)
S.Close()
in the main form's OnLoad event handler and loading that .ICO file as the app icon in VS's project properties dialog yields and icon that is obviously converted to 16 colors, and looks awful.
This is VB 10 Express.
Followed the wise advide to take this home, edit and convert it there.
Gimp#home at work.
Worked fine, looks great.
A codeless solution is better than no solution at all :-)