|
-
Sep 7th, 2003, 04:48 PM
#1
Thread Starter
Hyperactive Member
Help - Configuration Form Effect!
I Have a Configuration form for my Battle.net binary chat bot. When the Form loads, I Want all the Textboxes to Have ********* In place of the Letters/Numbers, But when you click on them, They Become Normlal, Is there anyway to do this WITHOUT Replacing the text? My friend said Something about Got Focus, and Lost Focus or something...
p.s. Thanks in advance ;D
-
Sep 7th, 2003, 05:31 PM
#2
Hyperactive Member
the sub gotfocus is available, so that when you click on a textbox it gets the focus (when you type it goes into that)
VB Code:
Private Sub Text1_GotFocus()
End Sub
Now returning to the world of VB. Please make sure your seatbelts are securely fastened and all trays are in their upright and locked position.
-
Sep 7th, 2003, 06:11 PM
#3
Fanatic Member
Start a new project, put a text box called Text1 on the main form, and a couple of other controls so you can take focus away from it, and add this code:
VB Code:
Private Sub Form_Load()
Text1_LostFocus
End Sub
Private Sub Text1_GotFocus()
Text1.PasswordChar = vbNullString
End Sub
Private Sub Text1_LostFocus()
Text1.PasswordChar = "*"
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|