Creating a Username and Password.

  • 13 years ago

    Hi, I'm really new to VB.net and I'm trying to hard code a username and password. Yes I know it would be easier to maintain if user/password list was in a separate file.  I get that but that's not where I'm at yet.  All I'm trying to do is have the password come up as "*'s" when its typed in. How do I do that?  And please keep it simple... small words that don't mean much....lol. The last programming language I used was CoBol.  Thanks in advance Guys.

     

  • 13 years ago

    on your form, set the PasswordChar Property of the password textbox to * or any other character you want to appear in the box.

  • 13 years ago
    In Textbox property, in PasswordChar give what ever Symbol you want,

    Example CodeBehind
    TextBox1.PasswordChar = "@"

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Before software should be reusable, it should be usable.” - Ralph Johnson