I’m searching for a button control that will AutoSize its image. Normal button controls won’t do this. I’m using C#.Net 2.0.
For example, I have a Button that is 200 x 50px and an image that is 800 x 100px. I want to resize the Image so that it is a little to the left, near the text of the button. With a PictureBox I can do this. But when I lay a PictureBox over the Button its very ugly because you can’t click there.
You can do this as follows:
E.g: Or, You can create a new Button type that will change the size of the image:
Test: