Use the property "BackgroundImage" to set the "image"
then change the property "BackgroundImageLayout" into "Stretch"
Following the code in "InitializeComponent()"
this.button1.BackgroundImage = global::WindowsApplication1.Properties.Resources.aral1;
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
Rajeswari nathanPosted Oct 26, 2009, 1:17 AM
Use the property "BackgroundImage" to set the "image"
then change the property "BackgroundImageLayout" into "Stretch"
Following the code in "InitializeComponent()"
this.button1.BackgroundImage = global::WindowsApplication1.Properties.Resources.aral1;
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
Deepak BhatiaPosted Oct 26, 2009, 12:15 AM
Just change the property backgound image layout property of button and set it to zoom or something else to see the proper changes.
Kirtan PatelPosted Oct 25, 2009, 10:22 AM
You need to Modify your Image to make it Smaller in Some Graphic Software Like photo shop so it can fit properly in button .
Make it 32x32 size so it can better fit in your button.
or Just choose some other icon 32x32 icon from Get Icon Free From Here there are many good icons there :)
if you try to put image in some other mode like Zoom / Streched by property it will look bad on gui :)
so better to resizing the image :)
Happy Coding :)
please check "do you like this answer" if it helped you :)