Changing state of label depending upon two checkboxs?

qadeer37

Well-known member
Joined
May 1, 2010
Messages
63
Location
Hyderabad,pakistan
Programming Experience
1-3
I have added two checkbox controls chkBox1 and chkBox2.
What I want to do is that when both the chkbox are same meaning checked or unchecked the label should be On and if both are not same label should be Off.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'and plz tell why this method is not working?
If chkBox1.Equals(chkBox2) Then

lblState.Text = "On"
Else
lblState.Text = "Off"

End If
End Sub
:(
 
Well this was proposed by Solitaire in post # 5.
Yes, I know, that's where I quoted from, don't you think that is a better choice than your lenghty code in post 14 that does the same?
 
Back
Top