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
Post a Comment