1 Hi so I want to display the response of the website in this panel, How would I go about that. I have the necessary System.Net Etc. Heres the code:
private void panel7_Paint(object sender, PaintEventArgs e)
{
WebRequest request = WebRequest.Create("http://www.contoso.com/default.html");
request.Credentials = CredentialCache.DefaultCredentials;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
// Display the status.
Console.WriteLine(response.StatusDescription);
}
Would I need to set the webresponse as a string and than pass it as string tx?
[The code of said panel] the code of the panel in cs
[3]: https://i.stack.imgur.com/DBY9w.png //the panel I want the data to display.