title: Writing to Label
body: <p>I'm currently trying to develop a web crawler in C# that will test the page exists, which is specified by the user. I'm hoping that once the crawler starts it will write the pages status to a windows form (which includes labels). But I'm having trouble getting the program to actually write to the form? </p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
      {
          Uri fileURI = new Uri(URLbox.Text);
          WebRequest request = WebRequest.Create(fileURI);
          HttpWebResponse response = null;
  
          request.Method = "HEAD";
          bool exists = false;
  
          try
          {
              response = (HttpWebResponse)request.GetResponse();
              exists = response.StatusCode == HttpStatusCode.OK;
  
          }
          catch
          {
              exists = false;
          }
          finally
          {
  
              if (response != null)
  
                  response.Close();
          }
  
      }
      private void label1_Click(object sender, EventArgs e)
      {
          Console.Write.ToString = ("Active");
      }
  </code></pre>
  
  <p>}</p>