Hi all, i am struggling with the RichTextBox control on my form, i can bold letters but canot unbold them here is my code :

VB Code:
  1. Private Sub LabelBold_Cick()
  2. If RTBCode.SelBold = True then RTBCode.SelBold = Not True
  3. If RTBCode.SelBold = False then RTBCode.SelBold = True
  4. End Sub

Help please

EDIT: Nevermind, i know whats wring, even if the text gets set to unbold the next line sets it back to bold, wow, why didn't i notice that last night :S
I'm silly

The code should look like this :
VB Code:
  1. Private Sub LabelBold_Click()
  2. If RTBCode.SelBold = True Then RTBCode.SelBold = Not True Else RTBCode.SelBold = True
  3. End Sub