How to add an "ENTER" into string ?
-
I need to add a "ENTER" whitespace into string, so when i display the string into control, the string will be continue display on next row. How to add this "ENTER" ? for example; dim str as string = "A ENTER B" so the output will be : A B
Best regards, Chee ken
-
I need to add a "ENTER" whitespace into string, so when i display the string into control, the string will be continue display on next row. How to add this "ENTER" ? for example; dim str as string = "A ENTER B" so the output will be : A B
Best regards, Chee ken
-
I need to add a "ENTER" whitespace into string, so when i display the string into control, the string will be continue display on next row. How to add this "ENTER" ? for example; dim str as string = "A ENTER B" so the output will be : A B
Best regards, Chee ken
Hi \r - Carriage return dim str as string = "A \r B" Escape Sequences
-
I need to add a "ENTER" whitespace into string, so when i display the string into control, the string will be continue display on next row. How to add this "ENTER" ? for example; dim str as string = "A ENTER B" so the output will be : A B
Best regards, Chee ken
-
Use Environmend.NewLine:
Dim str As String = "A" + Environment.NewLine + "B"
Then of course it depends on if the control handles line breaks in the text or not.--- b { font-weight: normal; }