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

Tibco Rendezvous (tibrv) C# .Net example

Parse XML to dynamic object in C#