关于c#中文本框拆分的问题 [英] question about textbox split in c#
本文介绍了关于c#中文本框拆分的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友
i希望简单登录id到tcp连接。
我该怎么办?在文本框中拆分用户名和密码示例:
用户名和密码
< br $> b $ b
希望你动摇我的问题
解决方案
(如果我找到你了 - 检查留给读者)
string [] as = LoginTextBox。拆分( new char [] {' %'});
string user = as [ 0 跨度>];
string password = as [ 1 跨度>];
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
解决方案
(if I got you - checks left to the reader)
string [] as = LoginTextBox.Split(new char [] {'%'}); string user = as[0]; string password = as[1];
这篇关于关于c#中文本框拆分的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文