
private void Form1_Load(object sender, EventArgs e)و یا از propertis فرم خاصیت FormBorderStyle را برابر None قرار بدین که فرم به شکل زیر در میاد :
{
this.FormBorderStyle = FormBorderStyle.None;
}

private const int WM_NCHITTEST = 0x84;
private const int HTCLIENT = 0x1;
private const int HTCAPTION = 0x2;
protected override void WndProc(ref Message message)
{
base.WndProc(ref message);
if (message.Msg == WM_NCHITTEST && (int)message.Result == HTCLIENT)
message.Result = (IntPtr)HTCAPTION;
}
برچسب:
نویسنده: نگین کوشکی