|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how to open files from .net appHi,
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" <samuelberthe***@googlemail.com> schrieb: \\\> 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>) /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Thanks Herfried, exactely what I needed :)
Herfried K. Wagner [MVP] wrote: Show quoteHide quote > "graphicsxp" <samuelberthe***@googlemail.com> schrieb: > > 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>) > /// > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/>
Validating textbox w/ Cancel button
sql server 2005 tools configuration starts when I build a distribution project (VB 2005) Delegate et al Mdi Form Validating VB.NET ComboBox _SelectedIndexChanged TypeForwardedToApp attribute. text justification in excel ComboBox in DataGrid How to compare two identical tables in VB.NET + MS Access Determine projects in solution within VS2005 macro |
|||||||||||||||||||||||