Re: How to code a carriage return in a Textbox?
From: Björn Holmgren (bjohol_at_hotmail.com)
Date: 05/05/04
- Next message: Björn Holmgren: "Re: Display weeknumber with 2 digits using format function"
- Previous message: Björn Holmgren: "Re: Pl help me about VB6, Excel97 and Windows'98"
- In reply to: Klist Smith: "How to code a carriage return in a Textbox?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Björn Holmgren: "Re: Display weeknumber with 2 digits using format function"
- Previous message: Björn Holmgren: "Re: Pl help me about VB6, Excel97 and Windows'98"
- In reply to: Klist Smith: "How to code a carriage return in a Textbox?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|