开发者

Prevent line break in System.Windows.Forms.Button

开发者 https://www.devze.com 2023-01-28 17:01 出处:网络
is there any way to prevent the WindowsForm button control from performing a line break when the string in its .Text propert开发者_运维百科y is too long?

is there any way to prevent the WindowsForm button control from performing a line break when the string in its .Text propert开发者_运维百科y is too long?

Maybe using SendMessage via PInvoke?!

Thanks in advance.

Regards, Kevin


Set the button's AutoEllipsis property to True. This also automatically enables a tooltip so that the user can see the entire button's Text value when she hovers the mouse over the button.

0

精彩评论

暂无评论...
验证码 换一张
取 消