[2005] [Resolved] Help on Richtextbox turning some words bold
Help on Richtextbox turning some words bold
Vb 2005 working on richtextbox text from a command button
The code works like this it turns bold between \b1 to \b0
So any words between them is turned bold
\b1 NDB Definition:\b0
1) father of an individual
2) of God as father of his people
3) head or founder of a household, group, family, or clan
4) ancestor
\b1 Part of Speech:\b0 noun masculine
\b1 A Related Word by NDB/Strong\rquote s Number:\b0 a root
\b1 Same Word by TWOT Number: \b0 4a
I need help on my code so it can look all through the text and turn any text between \b1 to \b0 bold
Like this
\b1 NDB Definition:\b0
1) father of an individual
2) of God as father of his people
3) head or founder of a household, group, family, or clan
4) ancestor
\b1 Part of Speech:\b0 noun masculine
\b1 A Related Word by NDB/Strong\rquote s Number:\b0 a root
\b1 Same Word by TWOT Number: \b0 4a
Re: [2005] Help on Richtextbox turning some words bold
well no one has helped me at all thanks
Code:
dim s As String
s = me.RTB.Text
me.RTB.Rtf = "{\rtf1\ansi" & s
i run this from a command button and it did just as i wanted
Rich-Text Format Specification you can download this doc for all spec on this control here http://www.snake.net/software/RTF/Old/RTF-Spec-1.2.rtf
and this bit of code will also remove the \b1 and \b0 as will
if you need more info then go to microsoft site