Hello,
I have a TextBoxExt control in Winforms.
I have a little problem with the vertical align of text.
When TextAlign = Center -> it works fine, the text is vertically centered
When TextAlign <> Center -> the bottom padding is more than top padding therefore the text is not in center vertically.
Can you help me please how can I override this padding? There are no Padding property.
I try with this:
protected override Padding DefaultPadding => new Padding(3, 6, 3, 3);
but has no effect.
I attach a video about this.
Thank you!
Attachment:
NET_EFEe9Y79Kr_4a91816c.zip