[RESOLVED] CheckBox Error
Code:
Private Sub CheckBox1_CheckChanged(sender As System.Object, e As System.EventArgs) Handles CheckBox1.CheckChanged
If TextBox1.Text = "Default" Then
MessageBox.Show("Default")
CheckBox1.Checked = False
Else
MsgBox("Not Default")
End If
End Sub
by default, the checkbox is not checked. now when i click the checkbox, I want it to do the above code.
if the box says "default", i want it to msgbox default, and then uncheck the check box. (it is automatically checked after i click it)
problem is, the msgbox pops up twice. any help. :D