Re: CR & Tab in VB 2005 Textbox
- From: "Michel Posseth [MCP]" <MSDN@xxxxxxxxxxx>
- Date: Thu, 21 Jun 2007 20:47:27 +0200
There is also a VBCRLF constant which can be used but is not really
Dot.Net
Secondly (and gone if you use the above) the CStr is converting as you saw
to a string with that value. I can only suggest that you don't use any of
the old VB functions and go with straight Dot.Net. In the long run this
will make things easier and more consistant.
Lloyd Sheen
Huh ???
Well read this
http://www.codeproject.com/useritems/novbruntimeref.asp
and read my responses
There is nothing old or outdated or whatever in the Microsoft Visual Basic
..NET Runtime
Just my thoughts regarding this mather
regards
Michel Posseth
"Lloyd Sheen" <a@xxx> schreef in bericht
news:466ED4E1-0A2E-47D8-B2F7-C9901223E1CC@xxxxxxxxxxxxxxxx
"AWW" wrote in message news:m2gl73171hmco6o06jj092nf87gs4fpqdu@xxxxxxxxxx
Using Textbox.Text = "123" & CStr(13) & "456"
I expect 2 lines on the screen but get 1 line with 13 in it.
It worked once in a RichTextBox but then stopped.
I just want to display aligned tabular data on the screen using CR &
Tabs to create data columns.
I am an old programmer but .Net novice.<g>
Help.
You may want to use the following constant under System.Environment
first is System.Environment.NewLine. This will ensure that you have the
correct setting for the newline character (no matter where it runs).
There is also a VBCRLF constant which can be used but is not really
Dot.Net
Secondly (and gone if you use the above) the CStr is converting as you saw
to a string with that value. I can only suggest that you don't use any of
the old VB functions and go with straight Dot.Net. In the long run this
will make things easier and more consistant.
Lloyd Sheen
.
- Follow-Ups:
- Re: CR & Tab in VB 2005 Textbox
- From: Cor Ligthert [MVP]
- Re: CR & Tab in VB 2005 Textbox
- From: Lloyd Sheen
- Re: CR & Tab in VB 2005 Textbox
- Prev by Date: Re: CR & Tab in VB 2005 Textbox
- Next by Date: Re: CR & Tab in VB 2005 Textbox
- Previous by thread: Re: CR & Tab in VB 2005 Textbox
- Next by thread: Re: CR & Tab in VB 2005 Textbox
- Index(es):
Relevant Pages
|