开发者

Prevent line break in System.Windows.Forms.Button

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜