Hello all,

Why this never occurs?

Code:
 
Protected Sub chkName_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkName.CheckedChanged
        If chkName.Checked = True Then
            txtName.Visible = True
        Else
            txtName.Visible = False
        End If
End Sub
The point is to click in the check box and depending on chkName 's value turn txtName's visibility on or off.

But when I run my app, this never occurs. It was supose to run this code when I click in chkName

Thanks, :P