Click here to Skip to main content
16,022,417 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to know how to open a file on mouse click, I want to open a WORD (Doc) file with corrseponding office application(not in my program) when pressing a button in my program. How can I do this?
Posted

1 solution

Use the Process.Start[^] method:
string myFile = @"F:\Temp\myWordDocument.doc";
Process.Start(myFile);
 
Share this answer
 
Comments
whitehaker 8-Jul-11 4:27am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900