Sexy Meda
Sexy Meda

Reputation: 95

Windows mobile button text new line

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

Answers (3)

Praveen
Praveen

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

josef
josef

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

user153923
user153923

Reputation:

The Button control does not support Multiline input.

Upvotes: 2

Related Questions