Answer the question
In order to leave comments, you need to log in
How to remove text padding in a button?
Hello!
I am writing an application on Windows forms and faced the following problem. There is a square button, I want to display one character as the text of the button, the size of the entire button, but when the text font size is increased, the text itself moves down.
Is there a way to remove this shift?
Answer the question
In order to leave comments, you need to log in
First of all, in such a situation, it makes sense to reduce Padding to 0 for all four sides.
If that's not enough, here is Reduce Padding Around Text in WinForms Button a few solutions to your problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question