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 become strikeout. The question is how is it possible that the result is strikeout while using Xor as the logical connective, and what is Label.Font.Style means in this case? It might be silly of me but I started learning VB.Net 5 days ago, so I'm glad if someone would enlighten me. Thank you.
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 become strikeout. The question is how is it possible that the result is strikeout while using Xor as the logical connective, and what is Label.Font.Style means in this case? It might be silly of me but I started learning VB.Net 5 days ago, so I'm glad if someone would enlighten me. Thank you.