Vb.net - Centering the text inside my tag!

I am trying to make my first program on vb.net 2010, and I have a question.

Do you know how, when a button is pressed, the text is centered inside the frame of the button? I have a label in my application that displays different text (through the label) every day.

How to limit a text area, for example, a frame in a button, and center the text in this text area? Or, if it’s easier to use a button, how can I delete a frame?

+3
source share
1 answer

Change the property AutoSizeto false and set the property TextAlignto center.

+11
source

Source: https://habr.com/ru/post/1760659/


All Articles