在窗体应用程序的文本框中对分区进行分类 [英] to string partation in textbox of window form application
本文介绍了在窗体应用程序的文本框中对分区进行分类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个字符串d,df,dg
我希望这个为
textbox1.text = d
textbox2.text = df
textbox3.text = dg
我可以这样做吗?
解决方案
string main =d,df,dg;
string [] s = main.split(',');
textbox1.text = s [0];
textbox2.text = s [1];
textbox3.text = S [2];
i have a string d,df,dg
and i want this as
textbox1.text=d
textbox2.text=df
textbox3.text=dg
can i do this ?
解决方案
string main="d,df,dg";
string[] s=main.split(',');
textbox1.text=s[0];
textbox2.text=s[1];
textbox3.text=s[2];
这篇关于在窗体应用程序的文本框中对分区进行分类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文