Link to home
Start Free TrialLog in
Avatar of darkstagg
darkstagg

asked on

Building LoginID from multiple textBox Strings

Hi,

I have a C# windows form built.  I want to get input from the user and build a loginID from that input.  So for example.  I have 3 textboxes.  the first is for input of the first name.  The second is for input of the last name.  The third textbox should display the last three chars of the lastname combined with the first 2 chars of the first name.

I want this to happen dynamically as the user types in the name.  I understand how to break the string apart into chars but I am unclear where to put this code so it updates the third textbox as the user types the data in.

Thanks for your help
darkstag@earthlink.net
SOLUTION
Avatar of mpf1748
mpf1748
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of darkstagg
darkstagg

ASKER

This is where I am having the problem.  I am unclear on the TextChanged listener.  Is it a seperate method and how do I activate it.  Is there an example somewhere. Im sorry to be so confused.  I am a little new at C#.

Thanks
darkstag@earthlink.net
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Very cool thanks.  Thats where I was going wrong on the textbox part.  Now I do have it accurately reacting on change.  It looks like I havent quite figured out the character input part yet. But I will give it a try before asking for more from you.

Sincere thanks I really appreciate it.

darkstag@earthlink.net