首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Windows Mobile >

C# 如果 拦截 系统提示? notification~该如何处理

2012-03-24 
C# 如果 拦截 系统提示??? notification~C# 如果 拦截 系统提示??? notification~比如 闹钟响的时候.新的

C# 如果 拦截 系统提示??? notification~
C# 如果 拦截 系统提示??? notification~

  比如 闹钟响的时候.新的短信或是邮件到达的时候.. 约会的提醒等... 怎么拦截它们..  不让它们自动跳出.. 而是由我的程序来处理呢???   或者关闭系统提示..让我的程序自己监视这些事件 ???

[解决办法]
拦截短信这样应该可以:
//拦截短信
MessageInterceptor msgInterceptor = new MessageInterceptor();
msgInterceptor.InterceptionAction = InterceptionAction.NotifyAndDelete;
msgInterceptor.MessageReceived += new MessageInterceptorEventHandler(msgInterceptor_MessageReceived);

添加引用Microsoft.WindowsMobile.PocketOutlook
using Microsoft.WindowsMobile.PocketOutlook.MessageInterception;

热点排行