Icon size in RadForm

2 posts, 0 answers
  1. David A.
    David A. avatar
    126 posts
    Member since:
    Aug 2008

    Posted 15 Mar 2011 Link to this post


    My application has a 48x48 icon used for a form icon and with a standard form, the 16x16 displays in the title and the 48x48 displays in the taskbar.  When I use RadForm the 48x48 is in the titlebar (like the demo) and is massive. I would like to make this 16x16 in the titlebar and managed to scale using VSB, but it looks all distored.  If I use a 16x16 icon for the form, the titlebar is perfect, but the taskbar icon is all distorted.  Is there a way with RadForm to duplicate what the standard winform does? (displays 48x48 as 16x16 in titlebar and 48x48 in taskbar with no distortion)

    Also, when I run the application the title does not appear in the jumplist for Win7 (see attached).

  2. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 18 Mar 2011 Link to this post

    Hello David,

    Thank you for your question.

    There is a way to change the size of the RadForm's icon. In order to do that, you should change the icon's ImageScaling mode and then set the desired size. Here is how this should be done:
    this.FormElement.TitleBar.IconPrimitive.ImageScaling = Telerik.WinControls.Enumerations.ImageScaling.SizeToFit;
    this.FormElement.TitleBar.IconPrimitive.ScaleSize = new Size(16, 16);

    I hope this will help you. If you have any further questions, feel free to ask.

    Ivan Todorov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. DevCraft R3 2016 release webinar banner
Back to Top