In my Rtf Editor I can toggle bold, Italic, and underline. I works fine. Here is the code.
Only problem if I uncheck the btnBold, btnItalic elsewhere in my RichTextBox and return to a line that contains bold,Italic font. It does not check the btnBold or BtnItalic. Could someone point me in a direction.
Code:
With Me.rtbNotes
If btnBold.Checked Then
.SelectionFont = New Font(.SelectionFont, _
.SelectionFont.Style Or FontStyle.Bold)
Else
.SelectionFont = New Font(.SelectionFont, _
.SelectionFont.Style Xor FontStyle.Bold)
End If
End With