protected override void WndProc(ref Message m )
{
if (m.WParam.ToInt32()== 0xF060) // 关闭消息
{
//去做你愿意的事情
}
base.WndProc(ref m); // ...let Form take care of this message (normally)
}
{
if (m.WParam.ToInt32()== 0xF060) // 关闭消息
{
//去做你愿意的事情
}
base.WndProc(ref m); // ...let Form take care of this message (normally)
}
解决方案 »
- 关于抓取网页内容
- 怎样实现用ping监控1000个服务器是否连通?注意,是1000个以上哦。。。
- C# 可否调用C写的文件
- VB6和VC6里面如何调用.net下自己生成的类库?
- 1234567890如何转换为 "1,234,567,890"
- gdi+画动态图的问题
- WinFrom下的DataGrid问题。
- 轻松拿分,语法问题!~
- 求助不显示界面的应用程序??????
- 谁有 Visual Studio.NET 上机试验手册
- 请问c#里面的属性是干什么用的,
- 我用C#写了一个DLL,里面设置了在当前路径下读配置文件,可是用asp.net调用的时候,当前路径被IIS解释成了windows/system32
{
if (m.WParam.ToInt32()== 0x0112) // 关闭系统
{
//去做你愿意的事情
} if (m.WParam.ToInt32()== 0xF060) // 关闭程序
{
//去做你愿意的事情
}
base.WndProc(ref m); // ...let Form take care of this message (normally)
}
protected override void WndProc(ref Message m )
{
if (m.WParam.ToInt32()== 0x0112 || m.WParam.ToInt32()== 0xF060)
{
//去做你愿意的事情
} base.WndProc(ref m); // ...let Form take care of this message (normally)
}
c#的还没有搞过。