如何使用 C# 在 Windows 中的任务栏上放置控件
我用谷歌搜索了很多,找到了一些关于乐队对象的信息,我们可以从中制作任务栏的广告,我可以从头开始获得更多教程吗?一些示例程序。
除了带对象之外,还有其他替代方法可以在 Windows 任务栏上放置控件吗?
提前致谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想在任务栏中放置一个文本框(如 Google 桌面搜索栏),那么您实际上并没有尝试将控件放置在任务栏上,而是将其放置在任务栏内 em> 任务栏。
正确的解决方案是桌带。您可以在此处找到解释这些内容的 MSDN 文章。我不太确定你为什么说你想避免带对象。这是正确的做法。
代码项目上甚至还提供了 C# 示例实现:扩展资源管理器使用 .NET 和 Windows 窗体的 Band 对象
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
要使窗口与任务栏重叠,您可以将其
TopMost
属性设置为true
。但是这样你就必须自己控制位置,它也会重叠它下面的任何其他东西,但它至少是一个解决方案:)To make a window overlap the Taskbar you can set it's
TopMost
property totrue
. 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 :)