Re: How to code a carriage return in a Textbox?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Björn Holmgren (bjohol_at_hotmail.com)
Date: 05/05/04


Date: Wed, 5 May 2004 12:05:23 +0200


"Klist Smith" <klistsmith@hotmail.com> wrote in message
news:4098a5b5$1_2@news.tm.net.my...
> I want my text to appear as multi-lines inside the VB textbox and the
> value of it is programatically compiled.
>
> I tried using CHR(10) or CHR(13) but the textbox shows both of them as a
> black narrow rectangle only, instead of a linesfeed. Any suggestion?
>
> I have already enabled Multiline property of the textbox.
> Thank you very much.

You're coding LF+CR. The correct sequence is CR+LF.

As harold suggested, you can avoid making the mistake again, and make your
code more readable by using vbCRLF, or even better vbNewLine.

--
Björn Holmgren
Guide Konsult AB


Relevant Pages

  • Re: How to code a carriage return in a Textbox?
    ... "Klist Smith" wrote in message ... > I want my text to appear as multi-lines inside the VB textbox and the ... > I have already enabled Multiline property of the textbox. ... As harold suggested, you can avoid making the mistake again, and make your ...
    (microsoft.public.vb.controls)
  • Re: How to code a carriage return in a Textbox?
    ... Try vbCrLf ... Good luck ... > I want my text to appear as multi-lines inside the VB textbox and the ... > I have already enabled Multiline property of the textbox. ...
    (microsoft.public.vb.general.discussion)
  • Re: How to code a carriage return in a Textbox?
    ... Try vbCrLf ... Good luck ... > I want my text to appear as multi-lines inside the VB textbox and the ... > I have already enabled Multiline property of the textbox. ...
    (microsoft.public.vb.controls)
  • How to code a carriage return in a Textbox?
    ... I want my text to appear as multi-lines inside the VB textbox and the ... Any suggestion? ... I have already enabled Multiline property of the textbox. ...
    (microsoft.public.vb.controls)
  • How to code a carriage return in a Textbox?
    ... I want my text to appear as multi-lines inside the VB textbox and the ... Any suggestion? ... I have already enabled Multiline property of the textbox. ...
    (microsoft.public.vb.general.discussion)