Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Windows 7 Notification Area Flyouts using C# with .NET framework?

Tags:

c#

.net

windows-7

I'm trying to create an application with Windows 7 Notification Area Flyouts, like the volume, power and wireless icons built in to Windows 7.

I haven't been able to find any information though on .NET APIs to implement this. Is there a built-in way to create notification area flyouts? If not, is there any other way to implement this functionality?

like image 397
nhinkle Avatar asked Aug 21 '11 00:08

nhinkle


People also ask

How do I add programs to the notification area in Windows 7?

Method 1: Manage icons by drag-and-drop Hide an icon: Drag the icon in the notification area, and then drop it anywhere outside the taskbar. Show an icon: Click the arrow to show the overflow section, drag the icon that you want to the notification area on the right side of the taskbar.

How do I turn on the notification bar in Windows 7?

If you are running Windows 7, follow these additional steps: Click Start. , type Customize icons and then click Customize icons on the task bar. Click Turn system icons on or off, and then set Volume, Network, and Power System to On.

Where is the notification area located in Windows 7?

The notification area (also called the "system tray") is located in the Windows Taskbar, usually at the bottom right corner. It contains miniature icons for easy access to system functions such as antivirus settings, printer, modem, sound volume, battery status, and more.

How do I add notification icon to taskbar?

To change how icons and notifications appearPress and hold or right-click any empty space on the taskbar and select Taskbar settings. Under Taskbar corner icons: Select On for any icons you want to see on the taskbar. Select Off for any icons you don't want to see on the taskbar.


2 Answers

There isn't anything special about them, just a plain window (Form) without a title bar. ControlBox = false and Text = "" in winforms. The only things you have to do is set its Location property so it shows up above the notification area. And implement the Deactivate event to close it.

like image 183
Hans Passant Avatar answered Oct 15 '22 09:10

Hans Passant


I answered a similar question here:

Create a System-tray styled box in Winforms (C#)

Configure a few properties as mentioned there will get you a window that looks like this, which you can fill with your own controls. From here you'll need a small panel docked to the bottom of the window, a few links to put in it, and whatever other controls you need.

example border window

like image 27
Factor Mystic Avatar answered Oct 15 '22 09:10

Factor Mystic