System.Diagnostics.Process.Start("winword", "importantstuff.doc")
This is open the document(importantstuff) with microsoft word.2009/2/15 Cerebrus <[email protected]> > > Just call System.Diagnostics.Process.Start(myFileName) and Windows > will handle the rest. Note that you must make sure that you have > permissions to access the file in question. > > On Feb 15, 6:23 am, Michael Gao <[email protected]> wrote: > > How do you let the user open a selected file with the proper program > > (NOT mine)? For example, the user selects importantstuff.doc and Word > > opens the file. I want the user's installed .NET to determine what > > program to use by querying file associations. > -- Regards ******************* *C.Arun Kumar * *******************
