作者evirtues (don't care)
看板C_Sharp
標題Re: [問題] MDI如何不讓使用者移動child form?
時間Fri Aug 26 21:36:03 2011
在你的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
1F:→ deh3215:ok,試試看...thanks... 08/27 02:09