I can't seem to add a newline (/n) to get a richtextbox control to display text on successive lines. The text that I type is overwritten. How do I remedy this
My example
richTextBox->Multiline = true
richTextBox->Text = S"First line /n"
richTextBox->Text = S"Second line"
Thanks
DAS
Hi,
Try using \r\n - sounds like you're just getting a carriage return, and not
a newline.
Steve
> I can't seem to add a newline (/n) to get a richtextbox control to display text on successive lines. The text that I type is overwritten. How do I
remedy this?
> My example:
>
[quoted text clipped - 5 lines]
>
> DAS
D Steward - 30 Jan 2004 19:26 GMT
I have tried numerous combinations of escape sequences, and none of them work
It appears what happens is that it doesn't recognize the escape sequence and just overwrites the previous line
Any suggestions would be appreciated
DAS
harry_bosch - 30 Jan 2004 20:43 GMT
=?Utf-8?B?RCBTdGV3YXJk?= <anonymous@discussions.microsoft.com> wrote:
> It appears what happens is that it doesn't recognize the escape
> sequence and just overwrites the previous line.
You're not using an escape sequence, that's why :-)
"/n" vs. "\n"

Signature
harry
Austin Ehlers - 30 Jan 2004 19:47 GMT
Also use the += operator. Otherwise you're just overwriting the
previous string.
Austin
>Hi,
>
[quoted text clipped - 16 lines]
>>
>> DAS
D Steward - 30 Jan 2004 20:16 GMT
I tried this to no avail. Could you give me an example of how I could modify my originally posted code
Thanks
DA
----- Austin Ehlers wrote: ----
Also use the += operator. Otherwise you're just overwriting th
previous string
Austi
On Fri, 30 Jan 2004 12:43:37 -0000, "Steve McLellan
<sjm@fixerlabs.com.NOSPAM> wrote
>Hi
>>Try using \r\n - sounds like you're just getting a carriage return, and no
>a newline
>>Stev
>>"D Steward" <anonymous@discussions.microsoft.com> wrote in messag
>news:A8A5D18E-AE0D-4001-94A4-EF26C32777BB@microsoft.com..
>> I can't seem to add a newline (/n) to get a richtextbox control to displa
>text on successive lines. The text that I type is overwritten. How do
>remedy this
>>>> My example
>>>> richTextBox->Multiline = true
>> richTextBox->Text = S"First line /n"
>> richTextBox->Text = S"Second line"
>>>> Thanks
>>>> DA