title: C# Rectangle point registry
body: <p>I have some code here that is not registering to ever be true and I have been lost for a few hours. I apologize if its just a stupid mistake.</p>
  
  <pre><code>bool Bdrag;
  private void panel1_MouseMove(object sender, MouseEventArgs e)
  {
      Point Floater = new Point(e.X, e.Y);
      Rectangle Rect = new Rectangle(200, 200 ,40 , 40);
      Rectangle Rect2 = new Rectangle(250, 250, 40, 40);
      if(Rect.Contains(Floater))
      {
          if(e.Button == MouseButtons.Left)
          {
              Bdrag = true;
          }
          else
          {
              Bdrag = false;
          }
          Console.WriteLine("success 1");
          if(Rect2.Contains(Floater) &amp;&amp; Bdrag == true)
              {
                  Console.WriteLine("success 2!!")
              }
       }
  }
  </code></pre>
  
  <p>I am unable to ever reach writeline("success 2!!") even if I render the rectangles and make sure I am hitting them in the order I created.</p>
  
  <p>Thanks again guys.    </p>