how to oppen a site using c#

75

how to oppen a site using c# -

try
{
    System.Diagnostics.Process.Start("http://www.webpage.com");
}
catch (System.ComponentModel.Win32Exception noBrowser)
{
    if (noBrowser.ErrorCode==-2147467259)
    MessageBox.Show(noBrowser.Message);
}
catch (System.Exception other)
{
    MessageBox.Show(other.Message);
}

Comments

Submit
0 Comments