- Giả sử textBox chứa URL ; richTextBox chứa Source
- Muốn lấy Source trang nào thì gỏ địa chỉ trang đó vào textBoxCode:System.Net.WebRequest request = HttpWebRequest.Create( textBox.Text ) ; System.Net.WebResponse reponse = request.GetResponse() ; System.IO.StreamReader SR = new StreamReader(reponse.GetResponseStream()); richTextBox.Text = string.Empty; richTextBox.Text = SR.ReadToEnd();