This example demonstrates how to open file with an associated program. It shows,
how to open a file and how to open url address in a default web browser.In c#
files are opened using Process.Start method .
// open a file
System.Diagnostics.Process.Start(@"c:\letter.pdf");
//Open a URL in default browser
System.Diagnostics.Process.Start("http://snippets4you.blogspot.com");
No comments:
Post a Comment