title: C++ Draggable Borderless Form
body: <p>Alright, I'm making a simple sticky note application (Winodws Forms) <strong>in C++</strong> in Microsoft Visual Studio C++ 2010. 
  I'm trying to make a draggable borderless form.
  The code I have now is:</p>
  
  <pre><code>private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e)
  {
  this-&gt;dragging = false;
  }
  
  private: System::Void Form1_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
  {
  this-&gt;dragging = true;
  this-&gt;offset = Point(e-&gt;X, e-&gt;Y);
  
  }
  
  
  private: System::Void Form1_MouseMove(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
  {
  if (this-&gt;dragging)
  {
  Point currentScreenPos = PointToScreen(e-&gt;Location);
  Location = Point(currentScreenPos.X - this-&gt;offset.X, currentScreenPos.Y - this-&gt;offset.Y);
  }
  
  }
  
  private: System::Void Form1_MouseUp(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
  {
  this-&gt;dragging = false;
  }
  </code></pre>
  
  <p>This doesn't work for me. Can anyone help? </p>