停止自动隐藏托盘通知图标 [英] stop auto hiding tray notification icon

查看:70
本文介绍了停止自动隐藏托盘通知图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我的Windows窗体应用程序第一次运行时,任务栏图标都会在不到一分钟的时间内保持可见状态,然后它会自动隐藏,我该怎么做才能使其粘住而不是自动隐藏?

Whenever my windows forms application runs for the first time, the tray icon stays visible for about less than a minute, and then it autohides, what can i do to make it stick and not auto hide ?

我尝试搜索,但找不到任何有用的信息.

I tried searching and can't find any useful information.

这似乎是Windows 7及更高版本的默认行为,我想知道是否有一种方法可以从我的应用程序内部覆盖该行为?

It appears that this is the default behavior for windows 7 and above, I wonder if there is a way to override that behavior from inside my application ?

推荐答案

没有支持的编程方式来覆盖系统的默认显示/隐藏通知图标行为. MSDN :

There is no supported programmatic way to override the system's default show/hide notification icon behavior. MSDN:

在Windows 7上将图标添加到通知区域时,默认情况下将其添加到通知区域的溢出部分.此区域包含活动的通知区域图标,但在通知区域中不可见.只有用户可以将图标从溢出状态提升到通知区域,尽管在​​某些情况下,系统可以将图标作为简短预览(不到一分钟)临时提升到通知区域.

When an icon is added to the notification area on Windows 7, it is added to the overflow section of the notification area by default. This area contains notification area icons that are active, but not visible in the notification area. Only the user can promote an icon from the overflow to the notification area, although in certain circumstances the system can temporarily promote an icon into the notification area as a short preview (under one minute).

强调我的.

这篇关于停止自动隐藏托盘通知图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆