3

In C# I need to make something like this: https://i.stack.imgur.com/6oc1P.png

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

Cameron Tinker
  • 9,634
  • 10
  • 46
  • 85
Veiun
  • 61
  • 4
  • 1
    Do want to hide it from the taskbar and display a notification icon? Or do you want to put your taskbar-icon to the right, next to the notification area? – ChrisK Nov 26 '13 at 21:09
  • 1
    do you mean `DeskBand` objects? have a look here http://www.codeproject.com/Articles/2219/Extending-Explorer-with-Band-Objects-using-NET-and – sa_ddam213 Nov 26 '13 at 21:20

2 Answers2

2

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.

Community
  • 1
  • 1
BlackBear
  • 22,411
  • 10
  • 48
  • 86
2

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.

Cameron Tinker
  • 9,634
  • 10
  • 46
  • 85