Results 1 to 3 of 3

Thread: detect if item selected

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    how do I test whether an item in a listview is selected or not?

  2. #2
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    try
    Code:
    msgbox list1.text
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

  3. #3
    Guest
    Use the SelectedItem property.

    Code:
    Private Sub Command1_Click()
    RetItem = ListView1.SelectedItem
    If RetItem <> "" Then
    MsgBox RetItem & " = selected"
    Else
    Msgbox "No item selected"
    End If
    End Sub

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