如何更改notifyIcon组件的背景颜色和文本
How to change background color and text of notifyIcon component
如何更改notifyIcon组件的背景颜色和文字?
对于文本,您需要 BalloonTipText 属性:
var notifyIcon = new NotifyIcon();
notifyIcon.BalloonTipText = "Your string here";
但是不能使用此类型设置气球的背景颜色。如果您真的必须更改它,您可以使用 Win32API 中的 Shell_NotifyIcon 函数,如 here 所述。
如何更改notifyIcon组件的背景颜色和文字?
对于文本,您需要 BalloonTipText 属性:
var notifyIcon = new NotifyIcon();
notifyIcon.BalloonTipText = "Your string here";
但是不能使用此类型设置气球的背景颜色。如果您真的必须更改它,您可以使用 Win32API 中的 Shell_NotifyIcon 函数,如 here 所述。