添加组件到ListBox中: private void Form1_Load(object sender, System.EventArgs e) { string str = "First item"; int i = 23; float flt = 34.98f; listBox1.Items.Add(str); listBox1.Items.Add(i.ToString()); listBox1.Items.Add(flt.ToString()); listBox1.Items.Add("Last Item in the List Box"); } |
|
来自: 空城66 > 《添加组件到ListBox中》