I want to have a user select an item/items from a ListView Box, then click an update btn and have the selections appear in a text box. Here is what I got:
VB Code:
Private Sub btnWhile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnWhile.Click If lstParts.SelectedItems.Count = 0 Then MessageBox.Show("You did not select any items", "Error") Exit Sub End If If lstParts.SelectedItems.Count > 0 Then txtLoop.Text = "You have selected: [COLOR=RED]THE ITEMS THAT WERE SELECTED[/COLOR]." End If End Sub




Reply With Quote