Thank you really much JuggaloBrotha, I learned a lot. But if I may, why do you prefer to use logical IF rather than Xor to set and remove the strikeout?
I have this code applied into a checkbox:
Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged
Label.Font = New Font("Microsoft Sans Serif", 16, Label.Font.Style Xor FontStyle.Strikeout)
End Sub
The result was the label text style...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.