How do u make a newline in an text box?
-
How do u make a new line in text box programmatically in VB.NET? I was hoping to use C++ format code "\n": For i = 0 To (Count - 1) Step 1 txtMsgBox.Text = txtMsgBox.Text.Concat("\n" & lstContactList.SelectedItems(i).Text & txtMsg.Text) Next i But no, it didnt work. Thanx norm
-
How do u make a new line in text box programmatically in VB.NET? I was hoping to use C++ format code "\n": For i = 0 To (Count - 1) Step 1 txtMsgBox.Text = txtMsgBox.Text.Concat("\n" & lstContactList.SelectedItems(i).Text & txtMsg.Text) Next i But no, it didnt work. Thanx norm
You can use :
txtMsgBox.Text=txtMsgBox.Text+ vbCrLf + "NewString"
as vbCrLf = \n in VB make sure that :txtMsgBox.MultiLine=True
-
You can use :
txtMsgBox.Text=txtMsgBox.Text+ vbCrLf + "NewString"
as vbCrLf = \n in VB make sure that :txtMsgBox.MultiLine=True
Actually vbCrLf = \r\n, Carriage Return (Cr), Line Feed (Lf) vbCr = \r vbLf = \n Jason Gerard
-
How do u make a new line in text box programmatically in VB.NET? I was hoping to use C++ format code "\n": For i = 0 To (Count - 1) Step 1 txtMsgBox.Text = txtMsgBox.Text.Concat("\n" & lstContactList.SelectedItems(i).Text & txtMsg.Text) Next i But no, it didnt work. Thanx norm