Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3045
Button control doesn't scale image
posted

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,

Parents
No Data
Reply
  • 21795
    Offline posted

    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.

    UltraButtonPictureSize.zip
Children