|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to force new line of text in a multi line Textbox
For example, i want to print in vb like this
1. one 2. two in c , i can do something like printf("1. one \n"); printf("2. two \n"); If I need to display the same text in a VB textbox control, i must force a new line too. How could i do it in VB? Any help would be appreciated thanks in advance.. |
|
#2
|
|||
|
|||
|
Set the multiline property of the textbox to true, then use something like
"line 1" & vbcrlf & "line 2" & vbcflf |
|
#3
|
|||
|
|||
|
For helping u,i will make a sample for this problem:
1.I put a textbox control on the form,and call it as "text1". 2.use text property of textbox control to realize what u wanna: text1.text="1.one" & vbcrlf '-->add 1 line and newline text1.text=text1.text & "2.two" & vbcrlf '-->add 2 line and newline |
|
#4
|
|||
|
|||
|
Thanks man.. thats lightning fast response..
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > How to force new line of text in a multi line Textbox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|