title: How to draw with button click- C++ Windows Forms
body: <p>In a C++ WIndows Form 2010, I need to draw a line inside a Panel when a button is clicked. I  know how to draw a line in the paint but in <code>GO_Click</code> member not.  </p>
  
  <pre><code>private: System::Void GO_Click(System::Object^  sender, System::EventArgs^  e) 
  {
      m-&gt;DrawLine(Pens::Blue, 500, 550, 700, 500);
  }
  </code></pre>
  
  <p>How to use DrawLine in GO_Click member?</p>