Пример #1
0
        private void MoveForm(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Left)
            {
                return;
            }
            SkinHelper.ReleaseCapture();
            var findForm = ((Control)sender).FindForm();

            if (findForm != null)
            {
                SkinHelper.SendMessage(findForm.Handle, SkinHelper.WM_NCLBUTTONDOWN, SkinHelper.HT_CAPTION, 0);
            }
        }