|
-
Oct 27th, 2005, 10:25 PM
#1
Thread Starter
Lively Member
How to make the textbox to accept password ?
-
Oct 27th, 2005, 10:36 PM
#2
Re: How to make the textbox to accept password ?
What is the question?
How about this:
VB Code:
If ucase(text1.text) = "PASSWORD" then msgbox "Password Good"
Post the code you are using, and the problem you are having. We can't help you unless you have a specific problem.
-
Oct 27th, 2005, 10:44 PM
#3
Re: How to make the textbox to accept password ?
Just replace "PASSWORD" with "title". You want your password validation to be case sensitive so its more secure.
VB Code:
If Text1.Text = "title" Then
MsgBox "Match"
Else
Msgbox "No Match"
'Do something like re-prompt the user to re-enter the password
End If
You can also set the PasswordChar property to an "*" on the Textbox so it will display an asterisk instead of the actual characters being entered.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 27th, 2005, 10:44 PM
#4
Thread Starter
Lively Member
Re: How to make the textbox to accept password ?
Sorry, I mean when you input the password, it will only show ******.
-
Oct 27th, 2005, 10:45 PM
#5
Re: How to make the textbox to accept password ?
See the last part of my post #3.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 27th, 2005, 10:46 PM
#6
Re: How to make the textbox to accept password ?
That would be the PasswordChar property of the textbox. You can place the * or whatever character you want to displayed there, and it will show that character for each keypress.
-
Oct 28th, 2005, 12:12 AM
#7
Thread Starter
Lively Member
Re: How to make the textbox to accept password ?
-
Oct 28th, 2005, 12:14 AM
#8
Re: How to make the textbox to accept password ?
Just in case, you can use this char to simulate an XP theme password char.
•
Gald to have helped. 
ps, dont forget to 'Resolve' your thread.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
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
|