Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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
Posted
Updated 1-Aug-12 19:34pm
v2

You might use a WebBrowser class to do this.
When you initialise it, you can apply any java script.
for example:
C#
object[] script = { "alert('Hello world!')" };
[your_web_browser_object].Document.InvokeScript("eval", script);
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900