我正在尝试使用“浏览器帮助程序对象”(BHO)。 目标是拥有一个标准的 IE 工具栏,其中包含一些按钮和一个自定义控件。 我想在 .NET 中开发它,
我从此处的基线示例开始。 这工作正常,但是...
- 如何控制工具栏在浏览器中的显示位置? 目前它仅显示在菜单行上。
- 如何让用户像其他工具栏一样移动它。 大多数其他工具栏(内置和插件)都有一个虚线分隔符,您可以在其中抓取和移动它们。
如果有更好的方法来开发它(例如 FireFox JS 插件),我也想知道。
I'm trying to develop an Internet Explorer 7 addon using "Browser Helper Objects" (BHO). The goal is to have a standard IE toolbar with some buttons and one custom control. I would like to develop it in .NET
I started from the baseline sample here. This works fine but...
- How to control where in the browser the toolbar will show? Currently it just shows on the menu line.
- How to let the user move it like other toolbars. Most other toolbars (built in and addons) have a dashed separator where you can grab and move them.
If there is a better way altogether to develop this (like the FireFox JS addons) I would like to know about it too.
发布评论
评论(1)
如果您使用您提供的链接中的基线工具栏,您可能会找到这篇文章 有用。 它解决了原始文章中工具栏实现的一些缺点,包括如何移动工具栏(查看文章底部)。
而且,据我所知,没有更好的方法在 C#/.NET 中创建 IE 插件,尽管我希望有。
If you are using the baseline toolbar from the link you provided, you may find this article useful. It addresses some of the shortcomings of the toolbar implementation in the original article, including how to move the toolbar (look toward the bottom of the article).
And, as far as I know there isn't a better way to to create a IE add-on in C#/.NET, although I wish there was.