Results 1 to 5 of 5

Thread: ListView Problems

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2004
    Posts
    131

    Question ListView Problems

    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:
    1. Private Sub btnWhile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnWhile.Click
    2.         If lstParts.SelectedItems.Count = 0 Then
    3.             MessageBox.Show("You did not select any items", "Error")
    4.             Exit Sub
    5.         End If
    6.         If lstParts.SelectedItems.Count > 0 Then
    7.             txtLoop.Text = "You have selected: [COLOR=RED]THE ITEMS THAT WERE SELECTED[/COLOR]."
    8.         End If
    9.     End Sub
    Last edited by twisted; Jun 22nd, 2004 at 07:32 AM.
    Twisted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width