|
Answer» I'm writing program in Visual Basic 8.0. I don't know how to put a text in new line.
for example I write the following code
TextBox.Text="abc" & "defg" & "ijkl"
The output will be
abcdefgijkl
But I need the following output
abc defg ijkl
Please tell me or write the code to display the above output. Thanx in advance...
MultiLine = True vbcrlf"vbcrlf"
Is this is code ? Where it has to applied ? Write with an example, Really I don't know....You said you wrote a WHOLE program in VB8 and you want to convert it to VB6, and you don't understand how to do this? This only THING i really don't know...... I never tried before..... Please tell me now i have the need of it.http://www.google.co.uk/search?hl=en&safe=off&num=100&q=vbcrlf+visual+basic+8&btnG=Search&meta=&aq=f&oq=1. At the design stage, SET the multiline property of the textbox to true. 2. TextBox.Text="abc" & vbcrlf & "defg" & vbcrlf & "ijkl" New Line character:
Code: [Select]ControlChars.NewLine() If you add that in like this: Code: [Select]Textbox1.Text = "First Line" & ControlChars.NewLine() & "Second Line" But like Salmon said, the textbox has to be Multiline for this to work.
Hope this HELPS ,Nick(macdad-)ControlChars.NewLine() and vbcrlf are equivalent. Yes, and considering this same poster was querying converting a "VB8" (what most people would call VB 2005, I think) to VB6, it makes more sense to use the more compatible vbcrlf then the ridiculously VERBOSE static method.Thanks for your help, all your answers helped me and worked well, Thanks again.....
|