how to open files from .net app

  • Thread starter Thread starter graphicsxp
  • Start date Start date
G

graphicsxp

Hi,
I loop through the files in a directory and I add the name of each file
as items of a listbox to my .net Application.

Now I would like to be able to open a file by clicking on the item in
the list. The file could be anything (pdf; jpg, mp3, doc...) and should
be opened with the default windows application for that particular type
of file.

How can I do that ?

Thanks
 
graphicsxp said:
Now I would like to be able to open a file by clicking on the item in
the list. The file could be anything (pdf; jpg, mp3, doc...) and should
be opened with the default windows application for that particular type
of file.

\\\
Imports System.Diagnostics
....
Process.Start(<file name>)
///
 
Back
Top