Changing WinForms TextBox to BorderStyle.None causes text to be cut off

后端 未结 4 524
小蘑菇
小蘑菇 2021-01-13 11:08

i\'ve changed a WinForms TextBox control to have no border.

When i do the bottom pixel row of text in the box is being cut off.

Top:

4条回答
  •  遥遥无期
    2021-01-13 11:57

    You can also fix this in the Visual Studio Designer.

    Change the height in the minimum size property for the text box. Change to multiline=true, then back to false. The text box will resize and stay fix.

    No code changes needed.

提交回复
热议问题