Ok, somethings in .Net they made more complicated and I don't know why....but anyways...
I am trying to change the font properties via a button push on my Rich Text Box. Basically Bold, Italic and Underlined. I want the button basically to work like an on-off button.
In VB6, I could just do a:
rtbTextBlock.SelBold = Not rtbTextBlock.SelBold
but .Net has made the Bold property of the new SelectedFont a read-only property for some reason. How can I go about doing this in .Net now while maintaining my other font settings? (e.g. If the text is Bold an Italic and I hit the Bold button, I want it to become unBold but still Italic).




Reply With Quote