protected override void WndProc(ref Message m) { base.WndProc (ref m); if(m.Msg == 0x84) // 不让拖动标题栏 { if ((IntPtr)2 == m.Result) m.Result = (IntPtr)1; } }
来源: http://www.bubuko.com/infodetail-3078163.html