Veiun
Veiun

Reputation: 61

how to put form on windows taskbar in C#?

In C# I need to make something like this: https://i.sstatic.net/6oc1P.png

Any idea how to do that + autohide it with taskbar? It should work like older versions of WMP.

Upvotes: 3

Views: 896

Answers (2)

Cameron Tinker
Cameron Tinker

Reputation: 9789

I found this on CodeProject but the code dates back to 2002: http://www.codeproject.com/Articles/2219/Extending-Explorer-with-Band-Objects-using-NET-and

You might consider using the Windows 7/8 preview function when you hover over your taskbar icon however:
http://code.msdn.microsoft.com/WindowsAPICodePack

Look in Samples\Shell\ThumbnailToolbarDemo for a sample demonstrating the ThumbnailToolbar as seen in newer Windows Media Player.

Upvotes: 2

BlackBear
BlackBear

Reputation: 22979

You have to create a Desk Band, which is a COM object implementing the interfaces IDeskBand,IObjectWithSite and IPersistStream and some others depending on the behavior you want (such as IInputObject if you want user input). This is a good starting point on the msdn and here's a CodeProject article about it. This answer on StackOverflow might also be worth looking at.

Upvotes: 2

Related Questions