font in text area

Joined
Feb 21, 2005
Messages
21
Programming Experience
3-5
1) I m using RichTextBox , Now I want to change the selected Text Font How Can I ??
2) I m using RichTextBox Now I want to change selected text 's into Underline .. Now I want to print it through crystal report .. If I underline a selected text I can do it but when i print it through crystal report then rest of the text gets underlined ....
 
i happen to just use the TextChanged event but yea, here ya go:

VB.NET:
Private Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
		RichTextBox1.SelectionColor = Color.Red
 		RichTextBox1.SelectionFont = New Font("Ariel", FontStyle.Bold)
End Sub
 
Last edited:
Back
Top