Open webpage from C# GUI

private void button_Click(object sender, EventArgs e)
{
try
{
string target = "http://itdevspace.blogspot.com/";
System.Diagnostics.Process.Start(target);
}
catch (Exception ex)
{
MessageBox.Show("Failed to open webpage");
}
}

Comments

Popular posts from this blog

Parse XML to dynamic object in C#

C# Crop white space from around the image