I have a problem with the richtextbox.rtf code when I run my program
And move to the next record then move back:
(this is how the data looks before richtextbox.rtf before it changes it):
\pard \fi-360 \li360 \sb80 \sa40 \f2 \cf2 \'e0\'e1\cf0 \f0 (Aramaic)\par \b0 \f3 'ab\cf0 \f0 \par \pard \sa60 \b1 BDB Definition:\b0 \par \pard \fi-360 \li360 \sa60 1) father\par \pard \sb60 \sa60 \b1 Part of Speech:\b0 noun masculine\par \b1 A Related Word by BDB/Strong\rquote s Number:\b0 corresponding to H1\par \b1 Same Word by TWOT Number: \b0 2553\par
(this is how it looks after richtextbox.rtf converts it which just how I want it to look):
אב (Aramaic)
'ab
BDB Definition:
1) father
Part of Speech: noun masculine
A Related Word by BDB/Strong’s Number: corresponding to H1
Same Word by TWOT Number: 2553
(But this is how it look after I move back 1 record or move again to the next record):
?? (Aramaic)'abBDB Definition:1) fatherPart of Speech: noun masculineA Related Word by BDB/Strong’s Number: corresponding to H1Same Word by TWOT Number: 2553
‘Here is the code, at the moment I have put this code in button control, I need to stop it from replying the rtf format if it has already applied it but if haven’t to do so
Expand|Select|Wrap|Line Numbers
- Dim s As String
- s = Me.DefinitionRichTextBox.Text
- Me.DefinitionRichTextBox.Rtf = "{\rtf1\ansi\fcharset177" & s