Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application in the Taskbar

Tags:

c#

.net

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.

like image 350
Jepe d Hepe Avatar asked Oct 29 '09 03:10

Jepe d Hepe


1 Answers

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. :-)

like image 183
Franci Penov Avatar answered Sep 21 '22 12:09

Franci Penov