is there any way to prevent the WindowsForm button control from performing a line break when the string in its .Text property is too long?
Maybe using SendMessage via PInvoke?!
Thanks in advance.
Regards,
Kevin
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.