|
-
Aug 9th, 2012, 05:58 PM
#1
Thread Starter
Lively Member
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...
-
Aug 9th, 2012, 07:26 PM
#2
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.
-
Aug 10th, 2012, 11:49 AM
#3
Thread Starter
Lively Member
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?
-
Aug 10th, 2012, 11:01 PM
#4
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
-
Aug 10th, 2012, 11:08 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|