Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Using regular expressions in vb.net

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 1 posts
I need some help, I need input a password into a text box, but insted of the letters showing up I need * to pop up as the user types. It needs to be done with regular expressions, but i can work with whatever anyone gives me. it should be done with the regex command. also, if anyone knows how to access data bases well from vb i will be looking for some info on that as well.

it will look something like this on the form

User Password |*******| the * are masked charicters the user typed in.

  • 0




    Member 1K

  • Member
  • PipPipPipPip
  • 1,382 posts
Hi brlogo,
You dont need to use regular expressions to mask the password characters. .NET provides the feature for both Windows and Web Apps.
  • For Windows Apps:
    Just set the PasswordChar property to *, in the properties window for that particular textbox.
  • For Web Apps:
    There are two ways, one using the standerd Web Server controls, other using the input Password HTML control and converting to a server control.
  • If you use Web Server Control's Textbox, just change the TextMode property to Password
  • Just use the HTML input password control and convert it to a server control.
What qustions related to Database do you have?

Edited by darth_ash, 05 April 2006 - 01:11 AM.

  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP