Password Generator

blo0dyxlies

Member
Joined
Mar 8, 2005
Messages
14
Location
Seaford, New York
Programming Experience
Beginner
Hi, I am trying to make a password generator that will show a password according to phone number. It has a textbox for each digit of a phone number. 10-- 7 regular digits, 3 for area code. I want to make it so you don't have to hit 'TAB' to change textboxes between entering each number. The max-length for each textbox is set to 1. Is there a property or a piece of code to do what I want?

Thank You for your time.
 

TPM

Well-known member
Joined
Dec 7, 2004
Messages
623
Location
CA
Programming Experience
3-5
You could use: on key press event, next textbox.focus

TPM
 

blo0dyxlies

Member
Joined
Mar 8, 2005
Messages
14
Location
Seaford, New York
Programming Experience
Beginner
How do I do that? I am very new. I took a class in VB.Net last last year... But the teacher wasn't that good and we didn't get that far into complex stuff. We only did the basics.
 

levyuk

Well-known member
Joined
Jun 7, 2004
Messages
313
Location
Wales, UK
Programming Experience
3-5
VB.NET:
[/size]
[size=2][color=#0000ff]Private[/color][/size][size=2] [/size][size=2][color=#0000ff]Sub[/color][/size][size=2] TextBox1_KeyPress([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] sender [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]Object[/color][/size][size=2], [/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] e [/size][size=2][color=#0000ff]As[/color][/size][size=2] System.Windows.Forms.KeyPressEventArgs) [/size][size=2][color=#0000ff]Handles[/color][/size][size=2] TextBox1.KeyPress
[/size][size=2][color=#0000ff]Me[/color][/size][size=2].TextBox2.Focus()
[/size][size=2][color=#0000ff]End[/color][/size][size=2] [/size][size=2][color=#0000ff]Sub
[/color]
 
Top Bottom