求助,VB2012 中实现 ListBox 通过“插入”、“删除”实现左右窗口切换
如图,类似图中选工质的功能。想要点Add能将左边所选一项移到右边(是移,不是复制,左边相应项消失,出现在右边),remove类似,求大神解答该怎么解决。万方感谢!Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click Dim item As Object Dim iItem As Integer iItem = lstLeft.SelectedIndex If iItem < 0 Then Return item = lstLeft.Items(iItem) lstRight.Items.Add(item) lstLeft.Items.RemoveAt(iItem) End Sub