lundi 30 novembre 2015

how to hide and show text if checkbox is checked vb.net

So far my codes are like this and they only enable and disable the Textbox.

Private Sub CheckBox17_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox17.CheckedChanged If CheckBox17.Checked = True Then

        TextBox1.Enabled = False

    ElseIf CheckBox17.Checked = False Then

        TextBox1.Enabled = True
    End If
End Sub

End Class

I need some codes that hide the text when the checkbox is checked and show it when checked.




Aucun commentaire:

Enregistrer un commentaire