日期:2014-05-17 浏览次数:20790 次
string[] arr = new string[listbox1.Items.Count];
for (int i = 0; i < listbox1.Items.Count - 1; i++)
{
arr[i] = listbox1.Items[i].ToString();
}
int[] values = new int[this.listBox1.Items.Count];
for (int i = 0; i < this.listBox1.Items.Count; i++)
{
int value = Convert.ToInt32(this.listBox1.Items[i].ToString().Trim());
values[i] = value;
}