using System.Net; using System.Windows.Forms; string url = "http://www.com"; string result = null; try { WebClient client = new WebClient(); result = client.DownloadString( url ); } catch (Exception ex) { // handle error MessageBox.Show( ex.Message ); }