String url2 = "http://176.149.56.104:10410"; try { HtmlWeb web2 = new HtmlWeb(); HtmlDocument doc2 = web2.Load(url2); cLigne = doc2.Text; iPos1 = cLigne.IndexOf("<"); iPos2 = cLigne.IndexOf(">"); cRadiations = cLigne.Substring(iPos1 + 1, iPos2 - iPos1 - 1); TextBox_Radiations.Text = cRadiations; } catch (Exception ex) { TextBox_Radiations.Text = "PANNE"; }