Results 1 to 4 of 4

Thread: checkbox question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    medina, OH
    Posts
    125
    I have a checkbox that when clicked changes
    the PasswordChar property. My question is
    how do i make it so when the checkbox is
    unchecked it change the Password CharProperty
    back to the original?
    Can anyone help?

  2. #2
    Guest
    Try this:

    Code:
    Private Sub Form_Load()
    Text1.PasswordChar = "*"
    End Sub
    
    Private Sub Check1_Click()
    If Text1.PasswordChar = "*" Then
    Text1.PasswordChar = ""
    ElseIf Text1.PasswordChar = "" Then
    Text1.PasswordChar = "*"
    End If
    End Sub

  3. #3
    Member
    Join Date
    May 2000
    Posts
    63
    One way is to store the original in the tag property of the checkbox. When it's unchecked set it back to the original by reading the tag property.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    medina, OH
    Posts
    125

    worked

    that worked, thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width