|
-
Mar 9th, 2008, 11:49 AM
#1
Thread Starter
Lively Member
[RESOLVED] How do I use VB6 to prevent me from going looney!
Lol, needed a title that was going to snag my fellow geeks' intrigue. =)
I am curious I have been floundering and thrashing about in the vast wave of VB Forums vigorously searching in vain to find an answer to my following dilemma:
I am coding a VB6 application which uses a Rich Text Box. In this RTB I would like to have a specific templet of text that needs to be appended into the RTB in order to maintain conformity.
The coding looks similar to this (note I am not at home at moment and can't cut n paste actual code):
Dim strString as String
strString = "____________________________________________________________" &
strString = strString & txtDate.Text & " " & lstShift.Text & " " & txtName &
strString = strString & "____________________________________________________________"
rtb.Seltext = strString
I was intending it to output like this:
_____________________________________________________________
01/10/2008 Graveyard Francisco
_____________________________________________________________
The problem is that when I attempt this I ended up getting an output that is all in one straight line that looks messed up similar to this:
________________________________________________01/10/2008 Graveyard Francisco_____________________________________________
How do I send this preformatted text templet to the RTB box without it all being crammed together in one line? I assume I need to indicate line breaks but I have no clue how to send line breaks to the RTB. Please save what little bit I have left of my sanity!
Your supreme help is greatly appreciated,
Thanks Azeccia
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|