Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
hi friend

i want to make simple login id to tcp connection.

how can i split username and password in textbox example :

username&password




hope you undrestand my question
Posted
Updated 15-May-14 12:43pm
v2
Comments
David_Wimbley 15-May-14 17:27pm    
Any reason username password have to be in same textbox?
BillWoodruff 15-May-14 19:38pm    
I strongly suggest you use separate masked TextBoxes.

1 solution

(if I got you - checks left to the reader)
C#
string [] as = LoginTextBox.Split(new char [] {'%'});
string user = as[0];
string password = as[1];
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900