Click here to Skip to main content
15,920,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
once i have dowloaded file(exel, word, pdp, txt, rar...) i would like open that file to preview it. by using c# how must i do? please help me! thank you so much!
Posted

Use the Process.Start Method[^]:
C#
using System.Diagnostics; // add this at the top of your code file

C#
Process.Start("yourfile.txt"); // change the file name and the extension into the file name and the extension that you need

Hope this helps.
 
Share this answer
 
 
Share this answer
 

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