So my code is like this :
richtextbox1.text = x1.text + x2.text (x's are labels)
And the result is like this :
x1x2
Expected Output :
x1
x2
So my code is like this :
richtextbox1.text = x1.text + x2.text (x's are labels)
And the result is like this :
x1x2
Expected Output :
x1
x2
You have to use NewLine Char to put extra line between two string.
richTextBox1.Text = string1 + System.Environment.NewLine + string2
Hi guys I am not good at this but this worked for me: 1. declare string 1 and string 2 just before the if statement like this using Dim:
Dim string1 = "I am teacher."
Dim string2 = "I like my students."
If TextBox1.Text = "write here the word that you want to search" Then
RichTextBox1.Text = "I am teacher." + System.Environment.NewLine + "I like my students."
End If
Try this
RichTextbox1.Text = x1.Text & " " &