Open a web page in C# using your default browser
Below is a code snippet to open a web page using C#
The input to the function is the url of the page to open.
private void OpenPage(string url)
{
try
{
System.Diagnostics.Process.Start(url);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
The input to the function is the url of the page to open.
private void OpenPage(string url)
{
try
{
System.Diagnostics.Process.Start(url);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
1 Comments:
I just love your weblog! Very nice post! Still you can do many things to improve it.
rH3uYcBX
By Anonymous, at December 30, 2009
Post a Comment
Links to this post:
Create a Link
<< Home