Hi,
I want to create a password box I am using textbox control for this but dont know how to hide the characters after input & display asterisks?
Hi,
I want to create a password box I am using textbox control for this but dont know how to hide the characters after input & display asterisks?
Found the passwordCharacter of a text box.
To create a password text box
Set the PasswordChar property of the TextBox control to a specific character.
The PasswordChar property specifies the character displayed in the text box. For example, if you want asterisks displayed in the password box, specify * for the PasswordChar property in the Properties window. Then, regardless of what character a user types in the text box, an asterisk is displayed.
i have decided to make a password box to open another form i got the part where it asks you the password and brings you the form. is there any way if you have a message box for it to display them in the form of "************" in an input box. also is there any way i could read from a text file just change that and that will change the password and i have to enter that to get in.
Code:1. 'This Is The Password Dialog Box 2. Dim PassBox As String, Lowercase As String 3. 4. PassBox = UCase(InputBox("Please Enter The Password", "Password Entry")) 5. Select Case PassBox 6. 7. Case "TEST" 'password 8. frmpass.Visible = False 9. frmmain.Enabled = True 10. frmmain.Visible = True 11. 12. 13. Case Else 14. MsgBox "Incorrect Password", , "Password" 15. 16. End Select 17. End Sub
Creating a Password Text Box
A password box is a text box that allows a user to type in his or her password while displaying placeholder characters, such as asterisks. Visual Basic provides two text box properties, PasswordChar and MaxLength, which make it easy to create a password text box.
PasswordChar specifies the character displayed in the text box. For example, if you want asterisks displayed in the password box, you specify * for the PasswordChar property in the Properties window. Regardless of what character a user types in the text box, an asterisk is displayed. With MaxLength, you determine how many characters can be typed in the text box. After MaxLength is exceeded, the system emits a beep and the text box does not accept any further characters.
http://msdn.microsoft.com/en-us/library/d3223ht2.aspx
Thats a complete C&P what a skid....
Bookmarks