How to place a control over the task bar in window

2019-01-25 14:02发布

问题:

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

回答1:

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.

                

                

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



回答2:

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