Rich text box

Can a user enter text in two different fonts(essentially two different languages) in a single richtext box? The user will enter text which is a combination of two different fonts which will be stored in the database. If it is not possible to do it with rich text box, what other control can be used for the above problem. Thanks in advance.
mkarthikeyanAsked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
Using the SelFontName and SelFontSize you can format the selected text the given FontName and Size.
CHeers
0
 
Mohammed NasmanSoftware DeveloperCommented:
Hello

Here's a sample to format text in RichTextBox
Private Sub Command1_Click()
  With RichTextBox1
    .Text = "Hello World"
    .SelStart = 0
    .SelLength = 5
    .SelFontName = "Tahoma"
    .SelFontSize = 20
    .SelStart = 6
    .SelLength = 11
    .SelFontName = "Times new roman"
    .SelFontSize = 18
    .SelItalic = True
  End With
End Sub

Best regards
0
 
mkarthikeyanAuthor Commented:
Thanks it worked out. But I am having problems when I retrieve it from the database and again show in the rich text box.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.