Hosting a web application within a windows form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I wish to host a web application within a windows form.
I don't believe my requirement would be satisfied by just using the
WebBrowser control.
You see what i will need to do is to be able to pass data objects from the
windows host into the web application being hosted and then pass that data
back to the windows host application.

Can anyone give me a steer on this.

thanks

thanks.
 
A web application is a server-side application. The "guts" of it are on the
web server. Only the client interface is in the browser. Therefore, if you
host the client interface in a Windows Forms application, the Windows Forms
application will have to talk to the web server in order to communicate with
the web application, not with the client browser.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 
WebBrowser does this; you can automate directly into the browser
object-model (Document.GetElementById() etc); to invoke backwards to
your app (perhaps via javasript) is a little more tricky - you need to
set an object for the ObjectForScripting, which becomes (IIRC)
"external" in javascript - i.e. if your object has a DoSomething()
method, the js can call external.DoSomething();

Marc
 
Back
Top