25

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
  • 8,785
  • 9
  • 54
  • 83

2 Answers2

40

Just found it.

You need to set:

ImageAlign to MiddleRight

TextImageRelation to ImageBeforeText

TextAlign as MiddleCenter

rhughes
  • 8,785
  • 9
  • 54
  • 83
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
  • 16,685
  • 2
  • 55
  • 101