how to execute win App methods from script in web pages when used with WebBrowser control

S

sachin

Hi All,
I'm facing difficulty in coding. I have a win App that has a web browser
control that host a website. Code is in VB.Net. The website have many web
pages. I want to execute win App methods from script in web pages.
I got some info but its in VC++.

Its like calling
window.external.yourMethod();
from javajscript. Can i code in VB.Net. There are things like
IDispatch.Invoke(), GetExternal()

Plz people its urgent....
U guys have any idea? Waiting for ur responses.....

Sachin
 
A

Arne Janning

sachin said:
Hi All,
I'm facing difficulty in coding. I have a win App that has a web browser
control that host a website. Code is in VB.Net. The website have many web
pages. I want to execute win App methods from script in web pages.
I got some info but its in VC++.

Its like calling
window.external.yourMethod();
from javajscript. Can i code in VB.Net. There are things like
IDispatch.Invoke(), GetExternal()

Plz people its urgent....
U guys have any idea? Waiting for ur responses.....

Sachin


Hi Sachin,

it is possible to call a method (which can be written in any .NET
language) outside the IE-Control (like window.external.yourMethod()) and
it is also posssible to retrieve events from the IE-Control and write
EventHandlers in the hosting WinForms-application.

Read these two articles:

Giving desktop applications a Web look
http://www.codeproject.com/dotnet/dwebapp.asp

Using MSHTML Advanced Hosting Interfaces
http://www.codeproject.com/csharp/advhost.asp

Cheers

Arne Janning
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top