The documentation on the "Line is too long" error states that the maxiumum line length is
65535, so this is why you are getting the error.
There are a few solutions:
You can concatenate the string using the &
Dim s As String = "this code is too long so I will use the" &
"this code acts like it is on the same line"
Note you can also use +
to concatenate string but make sure you have Option Strict On if you do (&
is safer as the result is always a String). See comparison between the two here: Ampersand vs plus for concatenating strings in VB.NET
You can use a string builder. This may be more efficient if you are continually adding strings to the original string (especially if you do this in a loop):
Dim sb As new StringBuilder
sb.Append("this code is too long so I will use the")
sb.Append("this code acts like it is on the same line")
Debug.Writeline(sb.ToString)
See MSDN for More information about Concatenation here