Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / Button control doesn't scale image

Button control doesn't scale image

New Discussion
Joseph Qerijero
Joseph Qerijero asked on Oct 26, 2017 6:12 AM

I have buttons with image assigned to them. When the user control or form’s AutoScaleMode is set to Font, the button size and its corresponding text are scaled but not the image. Is this by design, or do I need to set additional settings so the image will also scale?

Thanks,

Sign In to post a reply

Replies

  • 0
    Milko Venkov
    Milko Venkov answered on Oct 24, 2017 6:44 AM

    Hello Joseph,

    Yes, you can set the size of the image in the button. To do so set the ImageSize property of the button to any value that fits your application’s logic and design. Note, that by design the size of the image is fixed to 18/18 pixels.

    Attached is a small sample project where I am showing how you can set the image size. Please check my sample and let me know if this is what you are looking for or if I am missing something.

    • 0
      Joseph Qerijero
      Joseph Qerijero answered on Oct 25, 2017 4:14 PM

      So scaling has to be done programmatically for image?

      • 0
        Milko Venkov
        Milko Venkov answered on Oct 26, 2017 6:12 AM

        Hello Joseph,

        Yes, exactly. To set the size of the Image you should set the ImageSize property of the button.

        Please let me know if any additional questions on this matter arise.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Joseph Qerijero
Favorites
0
Replies
3
Created On
Oct 26, 2017
Last Post
8 years, 11 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Oct 26, 2017 6:12 AM

Last activity on

Feb 12, 2026 9:39 AM