Creating a password on VB.net
Creating a password on VB.net
Creating a password on VB.net
Creating a password on VB.net
Creating a password on VB.net
Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net
Creating a password on VB.net Creating a password on VB.net
Creating a password on VB.net
Go Back  Xtreme Visual Basic Talk > > > Creating a password on VB.net


Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2004, 05:19 PM
123deoliveira4 123deoliveira4 is offline
Newcomer
 
Join Date: Mar 2004
Location: Telford, UK
Posts: 3
Default Creating a password on VB.net


Can anybody tell me how to create a password on VB.net?
All I need to know is how to type in the password so that it displays asterix instead of the actual letters that are being typed...

Here's the code I've got:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Password = InputBox("Please enter your password", "Enter password")
Select Case Password
Case Is = "OPENSESAME"
Me.Hide()
F2.Show()
Case Is <> "OPENSESAME"
MsgBox("Sorry, invalid password.")
End Select
End Sub

Thanks
Reply With Quote
  #2  
Old 03-28-2004, 05:35 PM
sgt_pinky's Avatar
sgt_pinky sgt_pinky is offline
Contributor
 
Join Date: Feb 2004
Location: Melbourne, Australia
Posts: 633
Default

Instead of using an InputBox, create a seperate form, and have a text box on it with the property of the textbox PasswordChar set to "*"
Reply With Quote
  #3  
Old 03-29-2004, 04:49 AM
123deoliveira4 123deoliveira4 is offline
Newcomer
 
Join Date: Mar 2004
Location: Telford, UK
Posts: 3
Default

Quote:
Originally Posted by sgt_pinky
Instead of using an InputBox, create a seperate form, and have a text box on it with the property of the textbox PasswordChar set to "*"
Thanks a lot for that it works just fine....cheers!!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CODE 2 CHANGE PASSWORD &S TORE ITS NEW VALUE NEEDED sh33p16 Word, PowerPoint, Outlook, and Other Office Products 4 06-21-2003 11:29 PM
Creating a Password for an Adin Only Form pdiggs31 Database and Reporting 5 05-09-2003 02:28 PM
Problem with adding new users to database... Please Help MarkiasAklar Word, PowerPoint, Outlook, and Other Office Products 4 04-10-2003 01:10 AM
Adding password protection to database while creating it! seidenstud Database and Reporting 2 01-03-2003 11:38 AM
Bug in Reset Password chain of events loquintemp Forum Questions / Concerns / Comments 1 02-11-2002 11:29 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Creating a password on VB.net
Creating a password on VB.net
Creating a password on VB.net Creating a password on VB.net
Creating a password on VB.net
Creating a password on VB.net
Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net Creating a password on VB.net
Creating a password on VB.net
Creating a password on VB.net
 
Creating a password on VB.net
Creating a password on VB.net
 
-->