Show SVG as image for WinForm Button using the repo. #973
Unanswered
zydjohnHotmail
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Example data
Now I can use PNG, JPG, BMP format of images for Button image in WinForm C# program.
Used Versions
3.2.3
Hello:
I am working on a WinForm App for C# in Windows 10.
I can use raster format picture as the image for a button, like PNG, JPG, BMP.
However, those images are big, some times size are in MB. But for SVG, they are rather small, and for simple shapes, they are perfect.
But I can’t see any code example to use one SVG image for button image in a C# program.
Please show some code.
For example, I have one circle SVG file with a check:
Let’s say this file is called: “C:\Images\Circle1.svg”, and in my C# WinForm program, I created one Button called “button1”.
How I can use the Circle1.svg as the image for button1 in my C# program?
Please advise!
Beta Was this translation helpful? Give feedback.
All reactions