If icon that is specified for TitleIcon property has more sizes in it for example 64x64, 32x32, 24x24, 16x16, then the biggest size icon will be used and just resized. This results in crappy looking icon. Worked around that by creating a new icon object forcing to select 16x16 size icon from icon file.
/// <summary>
/// Gets or sets the optionally displayed icon next to the wizard title.
/// </summary>
/// <value>The title icon.</value>
[Category("Wizard"), Localizable(true), Description("Icon next to the wizard title")]
public Icon TitleIcon
{
get
{
return this.titleImageIcon;
}
set
{
this.titleImageIcon = value;
this.titleImageList.Images.Clear();
if (this.titleImageIcon != null)
{
this.titleImageList.Images.Add(new Icon(value, 16, 16));
this.titleImage.ImageIndex = 0;
}
this.titleImageIconSet = true;
this.Invalidate();
}
}
If icon that is specified for TitleIcon property has more sizes in it for example 64x64, 32x32, 24x24, 16x16, then the biggest size icon will be used and just resized. This results in crappy looking icon. Worked around that by creating a new icon object forcing to select 16x16 size icon from icon file.
Originally posted: 2013-02-08T07:54:34