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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FileListBox Populating 1

Status
Not open for further replies.

Bubbler

IS-IT--Management
Dec 14, 2003
135
US
I have a FileListBox and it is populated via a folder full of shortcuts (.lnk)
How can I make the FileListBox react so that when one of the shortcuts is clicked on in the FileListBox it opens the program that the shortcut is pionting to?

Code:
Private Sub File1_Click()
Code:
'Go to Program
Code:
End Sub

Code:
Private Sub Form_Load()
Code:
File1.Path = "C:\Program Files\app"
Code:
End Sub
 
Private Sub File1_Click()
MsgBox File1.Path & "\" & File1.List(File1.ListIndex)
End Sub

Will return the path and file clicked then just use ShellExecute to launch.
 
Thx DrJavaJoe, that's what I needed!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top