如何listbox在点击的同时选择前三项
如何listbox在点击的同时选择前三项
先将listview的selectionmode设为multisimple
然后:
Private Sub ListBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.Click
Me.ListBox1.SelectedItem = Me.ListBox1.Items(0)
Me.ListBox1.SelectedItem = Me.ListBox1.Items(1)
Me.ListBox1.SelectedItem = Me.ListBox1.Items(2)
End Sub