我正在使用httpwebrequest
中的winform
获取回复,现在我想在winform中将其显示为html页面,因为我正在使用richtextbox
,但它只显示我的文字而不是HTML请告诉我怎么做这里是我的代码
Uri uri = new Uri("http://www.google.com"); if (uri.Scheme == Uri.UriSchemeHttp) { HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri); request.Method = WebRequestMethods.Http.Get; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); StreamReader reader = new StreamReader(response.GetResponseStream()); string tmp = reader.ReadToEnd(); richTextBox1.Text = tmp; }