title: the name does not exist in current context (windows form)
body: <p>I am new to c# and I know the answer is very simple I just could not find it through searching</p>
  
  <p>I created two buttons the first one generates random values
  and the second one is an IF statement inside another button, but I`m getting a red line under 1value1 saying </p>
  
  <blockquote>
    <p>the name does not exists in current context</p>
  </blockquote>
  
  <pre><code>private void button3_Click(object sender, EventArgs e)
  {
      Random b = new Random();
      float value = b.Next(50, 100);
  }
  private void button2_Click(object sender, EventArgs e)
  {
      if (value &lt; MinValue)
      {
         textBox18.Text = ("warning");
         textBox18.ForeColor = Color.White;
         textBox18.BackColor = Color.Red;
      }
   }
  </code></pre>