如何才能实现像QQ那样的提示框呢??? 如何才能实现像QQ那样的提示框呢,比如有什么重大新闻你右下角的QQ图标上就会自动弹出新闻的标题那样?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1. 将此窗体的 StartPosition 设置成 手动.2. Form_Load 事件 this.Left = Screen.PrimaryScreen.Bounds.Width - this.Width; this.Top = Screen.PrimaryScreen.WorkingArea.Height - this.Height; 实现托盘的闪烁功能(如QQ有消息时的闪烁) (1).首先我们在空白窗体中拖入一个NotifyIcon控件和定时控件 private System.Windows.Forms.NotifyIcon notifyIcon1; private System.Windows.Forms.Timer timer1; (2).其次,我们准备两张ico图片,用来显示在任务栏,其中一张可用透明的ico图片,分别叫做1.ico和2.ico;并且建立两个icon对象分别用来存放两个ico图片; private Icon ico1 = new Icon("1.ico"); private Icon ico2 = new Icon("2.ICO");//透明的图标 (3).在Form_load中初始化notifyicon: private void Form1_Load(object sender, System.EventArgs e) { this.notifyIcon1.Icon=ico1;//设置程序刚运行时显示在任务栏的图标 this.timer1.Enable = true;//将定时控件设为启用,默认为false; } (4).先设置一个全局变量 i ,用来控制图片索引,然后创建定时事件,双击定时控件就可以编辑 int i=0; private void timer1_Tick(object sender, System.EventArgs e) {//如果i=0则让任务栏图标变为透明的图标并且退出 if(i<1) { this.notifyIcon1.Icon=ico2; i++; return; }//如果i!=0,就让任务栏图标变为ico1,并将i置为0; else this.notifyIcon1.Icon=ico1; i=0; }摘自http://qzone.qq.com/blog/30497105-1232636977 ShowInTaskBar:False这几天也在做这个东东,做出来了不过代码太杂,不适合贴出来1,2楼已经说得很清楚了 Button控制GridView 使用DevExpress GridView 控件,界面出现问题 c#关于获取网站内容 关于引用类型字段初始化的问题 关于几张表接口的问题 Webservice的方法如何与客户端调用的方法形成一个事务呢?百分百结贴,求围观! 菜鸟请教简单问题~50分相送 log4net使用一段时间后与数据库断开了,如何重新连接。 XML文档里存放的可能是FLASH或图片地址,用AdRotator该怎么显示呢? 请问哪里有C#的源代码下载? 非顶端窗口如何截图 Request["classid"] == null
2. Form_Load 事件
this.Left = Screen.PrimaryScreen.Bounds.Width - this.Width;
this.Top = Screen.PrimaryScreen.WorkingArea.Height - this.Height;
(1).首先我们在空白窗体中拖入一个NotifyIcon控件和定时控件
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.Timer timer1;
(2).其次,我们准备两张ico图片,用来显示在任务栏,其中一张可用透明的ico图片,分别叫做1.ico和2.ico;并且建立两个icon对象分别用来存放两个ico图片;
private Icon ico1 = new Icon("1.ico");
private Icon ico2 = new Icon("2.ICO");//透明的图标
(3).在Form_load中初始化notifyicon:
private void Form1_Load(object sender, System.EventArgs e)
{
this.notifyIcon1.Icon=ico1;//设置程序刚运行时显示在任务栏的图标
this.timer1.Enable = true;//将定时控件设为启用,默认为false;
}
(4).先设置一个全局变量 i ,用来控制图片索引,然后创建定时事件,双击定时控件就可以编辑
int i=0;
private void timer1_Tick(object sender, System.EventArgs e)
{
//如果i=0则让任务栏图标变为透明的图标并且退出
if(i<1)
{
this.notifyIcon1.Icon=ico2;
i++;
return;
}
//如果i!=0,就让任务栏图标变为ico1,并将i置为0;
else
this.notifyIcon1.Icon=ico1;
i=0;
}摘自http://qzone.qq.com/blog/30497105-1232636977
ShowInTaskBar:False这几天也在做这个东东,做出来了不过代码太杂,不适合贴出来1,2楼已经说得很清楚了