Re: [問題] MDI如何不讓使用者移動child form?
在你的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
→
08/27 02:09, , 1F
08/27 02:09, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章