Partial underline within a rich text box

The code noted below allows me to underline all the text in a rich text box. Can someone suggest code that will allow me to highlight part of the content of the rich text box and underline only that text? Thanks

PrivateSub BtnFont_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles BtnFOnt.Click

'Set the font dialog control properties

FontDialog1.ShowColor =True

'Show the font dialog

If FontDialog1.ShowDialog = Windows.Forms.DialogResult.OKThen

'If the OK button was clicked set the font

'in the text box on the form

RichTextBox1.Font = FontDialog1.Font

'Set the olor of the font in the text box on the form

EndIf

EndSub

[1775 byte] By [HowardB] at [2007-12-22]
# 1
Read this how-to article.

nobugz at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...