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.
精彩评论