Opening File in FileListBox

annir

Active member
Joined
Sep 1, 2008
Messages
32
Programming Experience
Beginner
Hi Guys,

Can I ask if any one knows how can I open the file that I choose from the filelistbox? Every time I click the file that I want to open, nothing happens.

this is my code:

PHP:
Dim a As String
a= Shell("rundll32.exe url.dll,FileProtocolHandler " & FileListBox1.SelectedItem)

pls I need your help.

thank you.

annir
 
VB.NET:
Dim file As String = Me.FileListBox1.FileName
If file <> String.Empty Then
    Process.Start(IO.Path.Combine(Me.FileListBox1.Path, file))
End If
 
Back
Top