Magesh
Magesh

Reputation: 49

C# - Change order of Notify Icon in System Tray in Windows

I have requirement to place the Notify Icon next to Battery icon in System tray/Notification area in Windows 10. When I add the icon using "NotifyIcon" type available it adds the Icon to the overflow area of System Tray. I'm developing this tool using C# and please let me know any insight on this.

using (NotifyIcon icon = new NotifyIcon())
{
    System.Drawing.Icon.ExtractAssociatedIcon("./Image/icon.ico");
    icon.Icon = Icon.FromHandle(bmp.GetHicon());
    icon.Text = "See your device health";
    icon.Click += new System.EventHandler(notifyIcon_Click);
}

Upvotes: 2

Views: 759

Answers (1)

Martin Walter
Martin Walter

Reputation: 540

The order of icons in the taskbar notification area (TNA) is not something you can control programmatically.

Raymond Chen wrote a blog entry about it.

Upvotes: 3

Related Questions