Prevent Word from truncating underlined spaced text

I have an app where I create an rtf file and then display it in the richtextbox control. Part of the wording is underlined with a trailing space. The code for the file looks something like this:  
    " blah blah blah " & space$(15) & " \ulnone\par"
If this file is printed from wordpad, then the underlining continues through the 15 spaces; however, if someone opens this in Microsoft Word, the underlining only goes through the last "blah".  What can I do to make the underlining stay the same if someone opens this file in Word?
LVL 6
Mach1proAsked:
Who is Participating?
 
CetusMODConnect With a Mentor Commented:
PAQed with points refunded (400)

CetusMOD
Community Support Moderator
0
 
justchat_1Commented:
add \enspace after the spaces...
blah blah blah               \enspace\ulnone\par
0
 
justchat_1Commented:
Thats the actual RTF code...
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
Mach1proAuthor Commented:
for some reason your code didn't work. the lines were still truncated when opened in Word
0
 
justchat_1Commented:
Make sure all the other RTF formatting is there...
0
 
Mach1proAuthor Commented:
I've solved my own problem simply by replacing the Space$'s with underline keystrokes "_".
I need to close this question out and can't give myself the points.
0
 
justchat_1Commented:
You can ask for a refund in community support...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.