The HTML page hosted in WebBrowser component can call back the application.
You need to add a little thing in the HTML file to handle the onclick event
of the special link:
Like this:
<a href="whatever" onclick="window.external.Test('called from script
code')">CLICK ME</a>
When clicked, the page will call your apps Test method passing the string as
a parameter.
This way you can make callbacks from the page to your app.
Just remember to set the ObjectForScripting property to this
(webBrowser1.ObjectForScripting=this;).
"Aleyna[]" <xo******@gmail.comha scritto nel messaggio
news:Oq**************@TK2MSFTNGP06.phx.gbl...
Hi
I want to catch the clicks for a special hyperlink on a webbrowser
component in order to activate the print setup section of my program. I
cannot use javascript because I must handle the printable document, in
fact, create it dynamically using program. I got stuck here, how can I do
that?
Can I use a special javascript command that sends browser any message and
warn it or something like that?
Any idea?
appreciate any help...
Thanks