0
votes

I have two elements on my Windows Forms application:
Webbrowser-Control
Button

Inside of the webbrowser-control I show a very simple html-form with two input type=text. I press the button and get access to both text fields.

Last year at the Qt developer conference there was a quite good presentation: http://labs.trolltech.com/blogs/2009/04/17/jquery-and-qwebelement/

void highlightAllLinks() {
    QString code = "$('a').each( function () { 
                        $(this).css('background-color', 'yellow') 
                    })";
    view->page()->mainFrame()->evaluateJavaScript(code);
}

But I have to do this with .net and Windows Forms. Anyone knowing a good tutorial?

2

2 Answers

0
votes

See if this link helps, it's a similar question to yours --> Using jQuery in WinForms desktop app?

EDIT:

I actually found code in another, better link: How to inject Javascript in WebBrowser control?