Internet Explorer工具栏按钮 [英] Internet explorer toolbar buttons

查看:217
本文介绍了Internet Explorer工具栏按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里确实需要一些帮助,我的应用程序应该执行以下操作:

-创建工具栏按钮(我可以通过更改注册表来做到)

-单击工具栏按钮时应调用注入Javascript代码的C#代码(我在这里遇到问题,如何使工具栏按钮事件反映在C#代码中)

-将Javascript注入到网页中的C#代码(我使用BHO编程的一些在线资源开发了此代码,并获得了成功)

请请帮助

解决方案

在这里不起作用.

这是询问者的期望:
1. 先尝试您要做什么!您可能会发现它并不难.
2.制定看起来像问题/无法解决的问题.

试试看,告诉他们是否遇到问题.
成员将很乐意为您提供帮助.


您可能会使用WebBrowser类来做到这一点.
初始化时,可以应用任何Java脚本.
例如:

 对象 []脚本= {" };
[your_web_browser_object] .Document.InvokeScript(" ,脚本); 


Guys I really need some help here, my application should do the following:

- Create a tool bar button( i could do it with registry changes)

- Tool bar button when clicked should invoke a c# code that injects Javascript code(I am having a problem here, how to get the tool bar button events reflected in C# code)

- C# code that will inject the Javascript into web page (I developed this using some on-line resources of BHO programming and I was successful)

Please please please help

解决方案

It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it''s not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.


You might use a WebBrowser class to do this.
When you initialise it, you can apply any java script.
for example:

object[] script = { "alert('Hello world!')" };
[your_web_browser_object].Document.InvokeScript("eval", script);


这篇关于Internet Explorer工具栏按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆