-
chr$(13)
i have a richtextbox. When I want to add text to it, I want it to be added directly to the next line in the richtextbox. How can that be done? I have tried chr(13) and chr$(13) but no hope yet. All I get is an invalid character and the text is on the same line.
-
Re: chr$(13)
You have to use the VB const "vbcrlf", it adds new line and line feed. I had this problem too.
-
Re: chr$(13)
The following code will print
"My Name is
Chem1"
dim Msg string
msg="My Name is "
msg= vbCrLf+ "chem1"
msgbox Msg 'or yu can say print Msg
-
Re: chr$(13)
Better still:
Dim Msg As String
Msg = "My Name is" & vbCrLf & "chem1"
msgbox Msg