26

I have a standard button on my WinForm with some text and an image. It looks like this:

Button

How can I set the button so that the image is aligned just to the left of the text? I have tried ImageAlign, but that doesn't seem to take into account the button's text.

rhughes
  • 9,257
  • 11
  • 59
  • 87

2 Answers2

41

Just found it.

You need to set:

ImageAlign to MiddleRight

TextImageRelation to ImageBeforeText

TextAlign as MiddleCenter

rhughes
  • 9,257
  • 11
  • 59
  • 87
15

For that you can use TextImageRelation Property to set it to ImageBeforeText:

Specifies that the image is displayed horizontally before the text of a control.

enter image description here

Vishal Suthar
  • 17,013
  • 3
  • 59
  • 105