As the question OP asking, he/her needs to re-size button as the same
as image's size like that:
' Assign image to Button1
Button1.Image = Image.FromFile("c:\image.jpg")
' Resize button based on image's size
Button1.Size = New Size(Image.FromFile("c:\image.jpg").Size)
Hmmm, thanks for opening my eyes. I took a look at the 'Button' class'
documentation and the property was not listed there.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.