title: How to update script c#
body: <p>Okay so I understand the basics of c# and have been using unity3d previously to  trying out Visual Studios. </p>
  
  <p>At the moments I have a simple button and a Textbox with the script below. I have it so that when the button is pressed it would change the Text in the textbox. (I know this is simple, im getting used to Visual Studios). What I was expecting to happen was for the text to change on that frame however it only changes once I try to type something in the textbox. Is there something like Update() in unity that updates everything inside every frame or how would I go about getting a similar result? Thanks in advance.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  
  namespace WindowsFormsApplicationTest
  {
  public partial class Form1 : Form
  {
      public bool ButtonIsPressed = false;
  
      public Form1()
      {
          InitializeComponent();
      }
  
      private void Form1_Load(object sender, EventArgs e)
      {
  
      }
  
      private void textBox1_TextChanged(object sender, EventArgs e)
      {
          if (ButtonIsPressed == true)
          {
              this.textBox1.Text = "ButtonIsPressed is true!";
          } else if (ButtonIsPressed == false)
          {
              this.textBox1.Text = "ButtonIsPressed is false!";
          }
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
          ButtonIsPressed = true;
      }
  }
  </code></pre>