[VB.NET] Add button icon / image beside text


How To :

  1.  Add 1 button on form
  2.  Prepare an image (.png, size 16 x 16), you get the image at iconarchive.com (my favourite).
  3.  Right click on button > properties , find Image and import your image (png) to resources.
  4.  After the image appear on button, set imageAlign to Middle Center.
  5.  Now set textAlign to Middle Right and set textImageRelation to ImageBeforeText.
  6.  here's the result :

 
     
however the size of the width is changed, the text and the image stays in the middle.

ENJOY :D

Post a Comment

Harap gunakan bahasa yang baik dan sopan, terima kasih