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,
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.
So scaling has to be done programmatically for image?
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.