views:

129

answers:

2

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.

A: 

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

Windows Media Player and Windows Search don't add themselves to the System Tray.
Franci Penov
What this is really called is the 'Notification Area'.
jleedev
@Franci - My Windows Media is most certainly in the system tray.
+4  A: 

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

Franci Penov
And in Win7 there are "thumbnail toolbars."See "Shell Developers Guide" - "Shell Extensibility" - "Extending the Desktop" on MSDN for a complete reference:http://msdn.microsoft.com/en-us/library/ff521672
Robert