Reputation: 95
I need to have new line in button.text in Windows Mobile 6,5. I have following code
this.button1.Text = "some \r\n one";
Even if I try
this.button1.Text = "some" + Enviroment.NewLine + "one";
I can't see second line in my button. I see only some. I tried to resize my button but It doesn't effect on it. Any Ideas? Thanks
Upvotes: 3
Views: 1127
Reputation: 267
The better way is to use a image in which you have the TEXT. Instead of the button use a picture box and add the codes to the click event of picture box.
Upvotes: 0
Reputation: 5959
Compact Framework does not support multiline text (BS_MULTILINE) although it is supported by C/C++: http://msdn.microsoft.com/en-us/library/windows/desktop/bb775951%28v=vs.85%29.aspx.
You may use this solution: http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/67664186-e61c-4510-8414-939fce37a30c
Upvotes: 0