惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
Recent Announcements
Recent Announcements
L
LangChain Blog
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
J
Java Code Geeks
博客园_首页
Jina AI
Jina AI
美团技术团队
H
Help Net Security
MyScale Blog
MyScale Blog
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
S
SegmentFault 最新的问题

博客园 - Francis Liang

Windows Azure存储容器私有,公共容器,公共Blob的区别 关于Windows Azure 地缘组(Affinity Groups) 使用Windows Azure创建和发布ASP.NET应用程序 创建并使用Windows Azure虚拟机模板 Windows Azure 设置虚拟机静态外网IP地址 Windows Azure 配置多个站点的虚拟网络连接 Windows Azure 虚拟网络配置(Site to Site) Windows Azure 虚拟网络配置(Point to Site) Microsoft Azure云计算第一步—试用帐户申请 拥抱云计算 《Microsoft Office SharePoint Server 2007 Best Practices》书评 修改MOSS2007内容查询部件实现自定义格式显示 [.NET Active Directory开发]根据NativeGuid获取DirectoryEntry实例 IISRESET命令功能新发现 动态改变ASP.net页面标题和动态指定页面样式表 Biztalk Server 2006安装配置 Web开发中对元素样式使用过滤器以增强其可视化效果 使用DIME协议上传文件 使用证书来做RSA非对称式加密
使用MSAgent代替传统的MessageBox提示来增用客户端用户体验
Francis Liang · 2005-11-30 · via 博客园 - Francis Liang

        以往的应用程序我们大多都是使用MessageBox来给用户以反馈,不免显得有点呆板,使用MSAgent来改善客户端的用户体验:

传统的提示方法:

使用MSAgent的提示方法:

代码:

            axAgent2.Characters.Load("Role",Application.StartupPath+"\\Assistant\\"+"earl.acs");
            axAgent2.Characters[
"Role"].Show(null);
            axAgent2.Characters[
"Role"].Activate(null);
            axAgent2.Characters[
"Role"].SoundEffectsOn=true;
            axAgent2.Characters[
"Role"].Top=200;
            axAgent2.Characters[
"Role"].Left=300;
            axAgent2.Characters[
"Role"].Balloon.FontSize = 11;
            axAgent2.Characters[
"Role"].Balloon.Style = 0x4160001;
            axAgent2.Characters[
"Role"].Speak("正在查询,请稍候",null);
            axAgent2.Characters[
"Role"].Listen(true);


下载示例应用程序:
https://files.cnblogs.com/lcybest/MSAgentSample.rar