RobHVB6Sql
Programmer
Phew, been looking at posts re this here and my head is about explode.
First time dealing with RichTextBoxes.
When I add text to a RichTextBox all text is made bold.
How can I add text to the end of the RichTextBox before I print it with specific formats?
Do I:
1) Format the text and then insert it. But then how to return the original text to its previous state.
2) Add it and then format ir.
3) Should I use .TextRTF or .text to insert?
Code:
'rtbHelp is a richtext box
'strPrintFooter is a string variable
strPrintFooter = "Printed: " & Format(Now, StdDateFormat) + vbLf + _
"Printed By: " & CurrUser.FirstName & " " & UCase(CurrUser.Surname) & " (" & CurrUser.UserID & ")"
rtbHelp.Text = rtbHelp.Text & strPrintFooter
Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)
First time dealing with RichTextBoxes.
When I add text to a RichTextBox all text is made bold.
How can I add text to the end of the RichTextBox before I print it with specific formats?
Do I:
1) Format the text and then insert it. But then how to return the original text to its previous state.
2) Add it and then format ir.
3) Should I use .TextRTF or .text to insert?
Code:
'rtbHelp is a richtext box
'strPrintFooter is a string variable
strPrintFooter = "Printed: " & Format(Now, StdDateFormat) + vbLf + _
"Printed By: " & CurrUser.FirstName & " " & UCase(CurrUser.Surname) & " (" & CurrUser.UserID & ")"
rtbHelp.Text = rtbHelp.Text & strPrintFooter
Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)