private void button2_click(object sender, system.eventargs e)
{
string[] a=new string[2];
a[0]="aa";
a[1]="bb";
application.add("a",a);//将值赋给 application["a"]
}
private void button3_click(object sender, system.eventargs e)
{
this.listbox1.items.clear();//清除列表里的值
string[] b=(string[])application["a"];//将值赋给数组 b
for (int i=0;i<b.length;i++)
{
this.listbox1.items.add(b[i]);
}
}
新闻热点
疑难解答