Reputation: 9583
I have a standard button on my WinForm
with some text and an image. It looks like this:
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.
Upvotes: 27
Views: 29772
Reputation: 17194
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.
Upvotes: 15
Reputation: 9583
Just found it.
You need to set:
ImageAlign
to MiddleRight
TextImageRelation
to ImageBeforeText
TextAlign
as MiddleCenter
Upvotes: 42