111,129
社区成员
发帖
与我相关
我的任务
分享private void button3_Click(object sender, EventArgs e)
{
if (this.listBox1.SelectedIndex + 1 >= this.listBox1.Items.Count)
{
return;
}
this.listBox1.SelectedIndex += 1;
}
private void button4_Click(object sender, EventArgs e)
{
if (this.listBox1.SelectedIndex - 1 < 0)
{
return;
}
this.listBox1.SelectedIndex -= 1;
}