Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

single-click dirlistbox

Status
Not open for further replies.

lrfcbabe

Programmer
Jul 19, 2001
108
0
0
US
Is there any way to set a dirlistbox to use a single click event? .Selected is not a property of this control.

Private Sub dirSource_Change()
filSource.Path = dirSource.Path
End Sub

Private Sub dirSource_Click()
Dim i As Integer
For i = 0 To dirSource.ListCount - 1
Select Case dirSource.Selected(i)
Case True
dirSource.Path =
drvSource.Drive & "\" & dirSource.List(i)
Exit For
Case False
End Select
Next i
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top