→ deh3215:ok,試試看...thanks... 08/27 02:09
在你的child form class裡加上:
protected override void WndProc(ref Message m)
{
if ((m.Msg == 0x112) && (m.WParam.ToInt32() == 0xf010)) return;
if ((m.Msg == 0xa1) && (m.WParam.ToInt32() == 0x2)) return;
base.WndProc(ref m);
}
※ 引述《deh3215 (黑金屬魂)》之銘言:
: 前提必須要有child form,所以FormBorderStyle設為None不符合我的需求....
: child form要如何設定才能不讓user用滑鼠拖拉?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 110.24.88.127