title: Error: Car.Form1 is inaccessible due to its protection level C#
body: <p>I cant figure out 2 errors in this code can someone help me please?</p>
  
  <p>error 1: Car.Form1 is inaccessible due to its protection level</p>
  
  <p>error 2: The type or namespace name 'Point' could not be found (are you missing a using directive or an assembly reference?</p>
  
  <p>Thanks for the help!</p>
  
  <p>Main class    </p>
  
  <pre><code>namespace Car
  {
  public partial class Form1 : Form
  {
      int x = 0;
      int y = 500;
      int turn = 0;
  
      public Form1()
      {
          InitializeComponent();
      }
      public void Form1_KeyDown(object sender, KeyEventArgs e)
      {
  
  
              if (e.KeyCode == Keys.Right)
              {
                  x += 32;
                  turn = 1;
              }
              else if (e.KeyCode == Keys.Left)
              {
                  x -= 32;
                  turn = 2;
                  Wheel1.Image.RotateFlip(RotateFlipType.Rotate270FlipNone);
                  Wheel2.Image.RotateFlip(RotateFlipType.Rotate270FlipNone);
              }
              else
              {
                  turn = 0;
              }
              if (x &lt;= -250)
              {
                  x = 1040;
              }
              else if (x &gt;= 1041)
              {
                  x = -250;
              }
  
  
      }
  
      public void Form1_Load(object sender, EventArgs e)
      {
  
      }
  }
  }
  </code></pre>
  
  <p>car class</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace Car
  {
       public class Car : Form
       {
          public Car(Form1 form1)
          {
              form1.Car.Location = new Point(form1.x, form1.y);
          }
       }
  }
  </code></pre>