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可以自定义索引位置,不超出索引范围即可
        }

相关文章:

  • 2021-11-29
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2021-08-22
  • 2022-12-23
  • 2021-11-21
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案