How to place a control over the task bar in window

2019-01-25 14:17发布

i googled a lot and found out some info about the band object from which we can make the ad-in for the task bar, can i get some more tutorials from scratch & some sample programmes.

is there any other alternative way is there to place a control over the windows task bar apart from band objects?

Thanks in advance

2条回答
beautiful°
2楼-- · 2019-01-25 14:41

If you want to place a textbox in the taskbar like the Google Desktop search bar, then you're not actually trying to place the control over the taskbar, you want to place it within the taskbar.

The proper solution here is a Desk Band. You can find an MSDN article explaining those here. I'm not really sure why you say that you want to avoid band objects. That's the right way to do this.

                A desk band is basically a way to create a dockable window on the desktop. The user selects it by right-clicking the taskbar and selecting it from the Toolbars submenu.

                Initially, desk bands are docked on the taskbar.

There's even a sample implementation in C# available on Code Project: Extending Explorer with Band Objects using .NET and Windows Forms

查看更多
Explosion°爆炸
3楼-- · 2019-01-25 14:52

To make a window overlap the Taskbar you can set it's TopMost property to true. But then you will have to control the positioning yourself, and it will also overlap anything else beneath it, but it is a solution at least :)

查看更多
登录 后发表回答