Checkbox Issue

Tyecom

Well-known member
Joined
Aug 8, 2007
Messages
78
Programming Experience
Beginner
I have created a logon page with a "checkbox" that when checked, it allows a user to go to a menu to change passwords. I would like the check in the checkbox to clear after going to the next screen. Is there a way of doing this? Thanks in advance.
 
set it's Checked property to False, unless by "I would like the check in the checkbox to clear" you mean disappear, you would want to set it's Visible property to False
 
I set the visible property to false but recieved the following error message:

If chgpasswordCheckBox.Checked = True Then
ChangePassword.Show() Then
chgpasswordCheckBox.Visible = False

The underline "Then" say an "expression expected" What does this mean?
 
If chgpasswordCheckBox.Checked = True Then
ChangePassword.Show() Then
chgpasswordCheckBox.Visible = False

should be:
VB.NET:
If chgpasswordCheckBox.Checked = True Then
  ChangePassword.Show()
  chgpasswordCheckBox.Visible = False
End If
 
Back
Top