Set background color of selected text from RichTextBox

By James J

background color of selected text from the ColorDialogBox in RichTextBox...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim cd As New ColorDialog
cd.ShowDialog()
RichTextBox1.SelectionBackColor = cd.
Color
End Sub

Set background color of selected text from RichTextBox  (720 Views)