how set different line of text with different font type in Richtextbox
how to set each line with different font type in richTextbox?? i only can set the whole text within the richtextbox....how to do that?
VB Code:
RichTextBox1.Text &= TextBox1.Text & vbCrLf
RichTextBox1.Font = New Font(New FontFamily("Arial"), 10, FontStyle.Underline)
Re: how set different line of text with different font type in Richtextbox
Selectionstart and selectionlength properties can be used to select the start character and length in characters of the selection in an RTB. You can then apply the font to the selection (selectionfont property).
Read my post here.
zaza