Hi - hopefully this is an easy one.
I am trying to set the caption of a label through code, and I want the caption to be split into multiple lines. I tried to use the chr(13) to split the text but it didn't work, it displayed a square instead of performing the carriage return. My code looked like this:
lblMessage.caption = "This is the first line" & chr(13) & "This is the second line".
Each line will be a different length so I can't just rely on the word wrapping to do this for me.
Any thoughts?
Thanks,
Bill
I am trying to set the caption of a label through code, and I want the caption to be split into multiple lines. I tried to use the chr(13) to split the text but it didn't work, it displayed a square instead of performing the carriage return. My code looked like this:
lblMessage.caption = "This is the first line" & chr(13) & "This is the second line".
Each line will be a different length so I can't just rely on the word wrapping to do this for me.
Any thoughts?
Thanks,
Bill