private void btnChangeIndex_Click(object sender, EventArgs e)
{
object objItem = this.listBox1.Items[i];
this.listBox1.Items.RemoveAt(0);
this.listBox1.Items.Insert(j, objItem);//j可以自定义索引位置,不超出索引范围即可
}
{
object objItem = this.listBox1.Items[i];
this.listBox1.Items.RemoveAt(0);
this.listBox1.Items.Insert(j, objItem);//j可以自定义索引位置,不超出索引范围即可
}