i presume you have changed the Listbox so that its selectionMode property is set to multiple (either Multisimple or MultiExtended)
vb Code:
Private Sub multiButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles multiButton.Click Me.resultLabel.Text = String.Empty If Me.namesListBox.SelectedItems.Count > 0 Then For Each itm As String In Me.namesListBox.SelectedItems Me.resultLabel.Text &= itm & Environment.NewLine Next End If End Sub




Reply With Quote