title: How to make a borderless form draggable on a custom title bar?
body: <p>I have created a border-less form using c# but could make the custom title bar movable so I search the internet and found this code:</p>
  
  <pre><code>protected override void WndProc(ref Message m)
  { 
      base.WndProc(ref m);
      if (m.Msg == WM_NCHITTEST)
         m.Result = (IntPtr)(HT_CAPTION);
  }
  
  private const int WM_NCHITTEST = 0x84;
  private const int HT_CLIENT = 0x1;
  private const int HT_CAPTION = 0x2;
  </code></pre>
  
  <p>After applying this code can click and drag my form in every inch of the form except for the title bar .</p>