最小化窗体到任务栏,如果当触发事件后,窗体在任务栏闪动 如题,好像qq这样,当最小化窗体到任务栏,若有信息发过来,窗体自动闪动 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在网上帮你找了点资料。http://blog.54master.com/index.php/586951/viewspace-20333 http://www.cnblogs.com/chwlyr/archive/2008/10/06/1304872.html 其实很简单,.NET自带一个NotifyIcon控件,具体应用你可以参考Msdn 发一个线程去改NotifyIcon的图标和状态就是了 隐藏只会出发托盘区的伸缩所以,你可以做一个空白的透明Icon跟你的主Icon轮换 private System.Windows.Forms.Timer timerNotifyIcon = new System.Windows.Forms.Timer(); private Icon[] icons = new Icon[4] { 图标1, 图标2, 图标3, 图标4 }; private byte iconNo = 3; void timerNotifyIcon_Tick(object sender, EventArgs e) { lcyNotifyIcon.Icon = icons[iconNo]; iconNo++; iconNo %= 4; }找到一人这样的,是用timer控制的.有点意思,没测试过 可以使用Api来实现,如:[DllImport("user32.dll", CharSet = CharSet.Auto)]public static extern bool FlashWindow(IntPtr hWnd, bool bInvert);protected override void OnClick(EventArgs e){ base.OnClick(e); FlashWindow(this.Handle, true);} [System.Runtime.InteropServices.DllImport("user32.dll") ] static extern int FlashWindow (int hwnd, int bInvert); private void button1_Click(object sender, System.EventArgs e) { FlashWindow(this.Handle.ToInt32(),1); //第二个参数为0,停止闪烁 } 看清楚啊,LZ要的是 在任务栏的,不是系统栏的 icon 提示。 大家对linq to oracle 有什么好建议吗? C# 中TreeView AfterSelected事件中的错误? 我想做数据的替换,不知道用什么方法好。 xml问题,初学者 调用CMD问题 一般C#项目常用到的设计模式有什么? 那种用得比较多? 怎样做一个获得远方登陆用户IP的WEBSERVICE呢? 关于用C#编写ActiveX的问题,急,望高手指教 谁会做图表?我是新手,不知道怎么做啊,能不能说说思路 有关dll的难题,好多天了没有人回答。 DataTable.Select后的排序问题 傳奇私服 如何能能得到物品的地址實現自動放藥,和自動解包呢! 请大家帮我看看 C#
http://blog.54master.com/index.php/586951/viewspace-20333
隐藏只会出发托盘区的伸缩所以,你可以做一个空白的透明Icon跟你的主Icon轮换
private System.Windows.Forms.Timer timerNotifyIcon = new System.Windows.Forms.Timer();
private Icon[] icons = new Icon[4] { 图标1, 图标2, 图标3, 图标4 };
private byte iconNo = 3;
void timerNotifyIcon_Tick(object sender, EventArgs e)
{
lcyNotifyIcon.Icon = icons[iconNo];
iconNo++;
iconNo %= 4;
}找到一人这样的,是用timer控制的.有点意思,没测试过
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern bool FlashWindow(IntPtr hWnd, bool bInvert);protected override void OnClick(EventArgs e)
{
base.OnClick(e);
FlashWindow(this.Handle, true);
}
[System.Runtime.InteropServices.DllImport("user32.dll") ]
static extern int FlashWindow (int hwnd, int bInvert);
private void button1_Click(object sender, System.EventArgs e)
{
FlashWindow(this.Handle.ToInt32(),1); //第二个参数为0,停止闪烁
}