Newline character in resource file

D

Daan

We use resource files in which we store all texts that are used for
labels, buttons, etc. Now when I add this text to a OpenNETCF ButtonEx
control but the string is too wide for the button, I want to 'wrap' the
text. Since this is not directly possible, I figured to add a \r\n where
I want the text to wrap. However, adding \r\n to the string in the
resource file results in the characters just being printed on the
button, not interpreted as a line break.

If I set the text directly, not using the resource file, everything goes
as desired, i.e. the newline is inserted at the right place.

Can anyone explain this behavior and suggest a solution? Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top