Jepe d Hepe
Jepe d Hepe

Reputation: 909

Application in the Taskbar

Can you give me an example on how to put my application form in the taskbar? like Windows media player or Window search when minimize.

Upvotes: 8

Views: 4822

Answers (2)

Franci Penov
Franci Penov

Reputation: 75982

What you are looking for is creating an Application Desktop Toolbar (also known as AppBar). The main function you use to register your application window as an AppBar is SHAppBarMessage.

To get you started, you can look at this old appbar example with C++. If you want to do it in C#, there's a thread that discusses some details on how to do it in WPF. I am not aware of examples of how to do it with WinForms, but a quick search on the web should bring something.

Update: Actually, if you want a toolbar that sits on the taskbar, you need to implement a Deskband. Here's a sample DeskBand in C++ and here's a DeskBand in C#.

That's what happens when you don't touch a topic in a while. :-)

Upvotes: 10

user147502
user147502

Reputation: 1118

What this is really called is the 'System Tray' You want your app to have an icon in the windows system tray. Many languages provide this functionality.

Here are a few links:

http://www.codeguru.com/Cpp/COM-Tech/shell/icons/article.php/c1335

http://www.codeproject.com/KB/shell/systemtray.aspx

Upvotes: 0

Related Questions