重写这个form的WndProc方法,代码如下(你试试,不对的话告诉我)protected override void WndProc(ref Message m)
{
if(m.Msg == 513)
{
   MessageBox.Show("okle!");
}
if(m.Msg == 528)
{
try
{
if(m.WParam.ToString() == "513")
{
MessageBox.Show("okle!");
}
}
catch(Exception E)
{
string sss = E.Message;
}
base.WndProc (ref m);
}