在线等,C# winform怎么把一个数组foreach便利后放到一个texbox里面 在texbox里面然后换行显示出来 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string[] arr = { "aa", "bb", "cc", "dd" };textBox1.Multiline = true;textBox1.Height = 200;this.textBox1.Lines = arr; string ss="";foreach (string s in StringArray){ss+=s;}textbox1.text=ss; 我想弹出另一个窗口 然后在这个 窗口中放一个textbox ,然后 把数据放到这个textbox里面 form2里声明一个全局变量public static string text;然后设置form2中的texbox.text=textform1里用foreach 方法遍历出内容 =form2.text 在from1里面用foreach便利后 传到from2里面 弹出来的窗体则是一个一个的弹出来 有几个数据弹出几个 怎么办啊 private void Test(){ int[] ary = new int[] { 1, 2, 3 }; string msg = string.Empty; foreach (int num in ary) { msg += num.ToString() + "\r"; } MessageBox.Show(msg); }使用TextBox显示的话,把Multiline属性设置为true. string[] arr = { "aa", "bb", "cc", "dd" }; foreach (string num in arr) { this.Textbox.Text += num.ToString() + "\t"; } 很简单你只需要把数组传过去然后遍历就OK了string[] str = { "aa", "bb", "cc", "dd" }; foreach (string s in str) { this.Textbox.Text += s + "\n"; } 怎么将dataset里面的一列数据保存为double数组 C#获取CPU温度不兼容 可以,怎样用C#console application里显示当前的日期和时间? 顶者有分, PDA手机软件开发中,GPS 里面的跟踪数是指什么, 怎么读取, 给资料的,当然也有分啦 求助vs 2008中菜单(尤其窗体快捷菜单)的制作 启动进程sqlservr时,弹出dos窗口怎么办啊,大侠救我啊 C#中的声音问题 DataGrid的超难问题 100分如何限制text框输入 winfrom窗体设计问题 做了个简略的的登陆系统老是连不上,在线等待大侠解决 请问web打印功能 如何做到预览时可以调整字段的位置
textBox1.Multiline = true;
textBox1.Height = 200;
this.textBox1.Lines = arr;
foreach (string s in StringArray)
{
ss+=s;
}
textbox1.text=ss;
public static string text;然后设置form2中的texbox.text=textform1里用foreach 方法遍历出内容 =form2.text
在from1里面用foreach便利后 传到from2里面 弹出来的窗体则是一个一个的弹出来 有几个数据弹出几个 怎么办啊
private void Test()
{
int[] ary = new int[] { 1, 2, 3 };
string msg = string.Empty;
foreach (int num in ary)
{
msg += num.ToString() + "\r";
}
MessageBox.Show(msg);
}使用TextBox显示的话,把Multiline属性设置为true.
foreach (string num in arr)
{
this.Textbox.Text += num.ToString() + "\t";
}
foreach (string s in str)
{
this.Textbox.Text += s + "\n";
}