using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsBorderNone
{
public partial class Form1 : Form
{
private bool moving = false;
private Point oldMousePosition;
public Form1()
{
InitializeComponent();
}
const int WM_NCHITTEST = 0x0084;
const int HTLEFT = 10;
const int HTRIGHT = 11;
const int HTTOP = 12;
const int HTTOPLEFT = 13;
const int HTTOPRIGHT = 14;
const int HTBOTTOM = 15;
const int HTBOTTOMLEFT = 0x10;
const int HTBOTTOMRIGHT = 17;
const int WM_GETMINMAXINFO = 0x24;
public struct PointAPI
{
public int x;
public int y;
}
public st