Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sachin - 29 Jul 2004 16:22 GMT
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
Arne Janning - 30 Jul 2004 05:47 GMT
> Hi All,
> I'm facing difficulty in coding. I have a win App that has a web browser
[quoted text clipped - 11 lines]
>
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.