question

shams-4721 avatar image
0 Votes"
shams-4721 asked JackJJun-MSFT commented

Button on image change is larger than button size

in vb.net 2019
when i press the button , the button image change and thats ok
but the problem that when the image i loaded it is out of button size
i try the code:

button1.Image = My.Resources.Closed_position_vertical
button1.BackgroundImageLayout = ImageLayout.Stretch
button1.ImageAlign = ContentAlignment.MiddleCenter

but it not achieve the target
thanks

dotnet-visual-basicoffice-vba-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@shams-4721 , what is your current project type, winform or wpf or asp.net?

0 Votes 0 ·

0 Answers