Results 1 to 5 of 5

Thread: Anybody familar with TimeSoft ExplorerListView

  1. #1
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Anybody familar with TimeSoft ExplorerListView

    Any body familar with TimeSoft ExplorerListView?
    If Not, this is a free unicode supported listview.

    I can't figure out how to remove selected item from the list
    Anybody please help, i will be very very thanksfull...

  2. #2
    Frenzied Member
    Join Date
    Aug 11
    Location
    B.C., Canada
    Posts
    1,838

    Re: Anybody familar with TimeSoft ExplorerListView

    same as listview

    Code:
    Private Sub Command1_Click()
    Dim i As Integer
       For i = 0 To List1.ListItems.Count - 1
          If List1.ListItems.Item(i).Selected Then
             Debug.Print "Current Selected Item  is #" & i & " (List1.ListItems.Item(" & i & ")"
             List1.ListItems.Remove i
             Exit Sub
          End If
       Next
    End Sub
    Last edited by Max187Boucher; Aug 9th, 2012 at 07:30 PM.

  3. #3
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Re: Anybody familar with TimeSoft ExplorerListView

    OMG i have to go through loop to know which item is selected?
    Isn't there any builtin function?

  4. #4
    Frenzied Member
    Join Date
    Aug 11
    Location
    B.C., Canada
    Posts
    1,838

    Re: Anybody familar with TimeSoft ExplorerListView

    no you dont there is a builtinfunction

    try using
    Code:
    List1.AnchorItem.Index
    
    'Example
    
    Private Sub Command1_Click()
    On Error GoTo Error_No_Selection
    MsgBox "Selected Item is Item(" & List1.AnchorItem.Index & ")"
    
    Error_No_Selection:
    MsgBox "Error, please make a selection first!"
    End Sub

  5. #5
    Frenzied Member
    Join Date
    Aug 11
    Location
    B.C., Canada
    Posts
    1,838

    Re: Anybody familar with TimeSoft ExplorerListView

    user the anchoritem

    Code:
    Private Sub Command1_Click()
    On Error GoTo Error_No_Selection
    MsgBox "Selected Item is Item(" & List1.AnchorItem.Index & ")"
    
    Error_No_Selection:
    MsgBox "Error, please make a selection first!"
    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
  •