471,582 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,582 software developers and data experts.

Embedding windows forms in IE

Hi all,
I have a massive windows application that refernces a lot of assemblies
and doing a lot of DAL anf IO operations.

I want to expose this application to the interner so that a user can
access it using a web browser.

How can i do it?
Do i have to use smart client?
Can i do it using activex controls?

All the example i have seen in the group talk about embeddign specific
controls and not a massive form and exe to the web.

Any ideas?

Sep 5 '06 #1
4 3898
Hi Pini

Firstly, a Smart Client (to my understanding) is a windows forms based
application that gets its data/services from a network/internet based
server (i.e. a bit like Outlook in that the application runs on your PC
but it downloads the messages from either your internal Exchange/Mail
server, or from a mail server hosted on a web site). In order for that
to be able to work then the client (winforms) application needs to know
how to communicate with the server (whether over your LAN or via the
internet using webservices for example), and likewise from the server
side of things (as well as taking care of authentication etc) so I
imagine this would probably result in a large rewrite of your app (but
that obviously depends on how it's already structured) and on top of
that, from your post it looks like you want people to run your app
inside a browser so I don't think this is what you're trying to
achieve.

As far as I know, you can't 'host' a windows form inside of a web
browser (could be wrong there though as I don't tend to do a lot of web
development).

If you want your users to be able to run your app via a web browser
then I imagine you're going to have to re-code your UI as web
forms/pages that consume your backend application code.

I think both options may involve quite a lot of work on your side to
get it running but again, it really depends on how your current app is
structured as to how complex this is.

Hope that helps
Martin

Pini wrote:
Hi all,
I have a massive windows application that refernces a lot of assemblies
and doing a lot of DAL anf IO operations.

I want to expose this application to the interner so that a user can
access it using a web browser.

How can i do it?
Do i have to use smart client?
Can i do it using activex controls?

All the example i have seen in the group talk about embeddign specific
controls and not a massive form and exe to the web.

Any ideas?
Sep 6 '06 #2
..net windows forms have always been 'embedable' in aspx pages : note the
limits & constraints

http://www.15seconds.com/Issue/030610.htm
"Pritcham" <do******************@hotmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi Pini

Firstly, a Smart Client (to my understanding) is a windows forms based
application that gets its data/services from a network/internet based
server (i.e. a bit like Outlook in that the application runs on your PC
but it downloads the messages from either your internal Exchange/Mail
server, or from a mail server hosted on a web site). In order for that
to be able to work then the client (winforms) application needs to know
how to communicate with the server (whether over your LAN or via the
internet using webservices for example), and likewise from the server
side of things (as well as taking care of authentication etc) so I
imagine this would probably result in a large rewrite of your app (but
that obviously depends on how it's already structured) and on top of
that, from your post it looks like you want people to run your app
inside a browser so I don't think this is what you're trying to
achieve.

As far as I know, you can't 'host' a windows form inside of a web
browser (could be wrong there though as I don't tend to do a lot of web
development).

If you want your users to be able to run your app via a web browser
then I imagine you're going to have to re-code your UI as web
forms/pages that consume your backend application code.

I think both options may involve quite a lot of work on your side to
get it running but again, it really depends on how your current app is
structured as to how complex this is.

Hope that helps
Martin

Pini wrote:
Hi all,
I have a massive windows application that refernces a lot of assemblies
and doing a lot of DAL anf IO operations.

I want to expose this application to the interner so that a user can
access it using a web browser.

How can i do it?
Do i have to use smart client?
Can i do it using activex controls?

All the example i have seen in the group talk about embeddign specific
controls and not a massive form and exe to the web.

Any ideas?

Sep 7 '06 #3
Hi

As I posted, I don't do a great deal of web development so my knowledge
there is more limited but from what I understand the OP wanted to host
his windows forms application in a browser - quote:
All the example i have seen in the group talk about embeddign specific
controls and not a massive form and exe to the web.
(app, not individual controls - quote: ) and that was what I was
answering.

Martin
gerry wrote:
.net windows forms have always been 'embedable' in aspx pages : note the
limits & constraints

http://www.15seconds.com/Issue/030610.htm
"Pritcham" <do******************@hotmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi Pini

Firstly, a Smart Client (to my understanding) is a windows forms based
application that gets its data/services from a network/internet based
server (i.e. a bit like Outlook in that the application runs on your PC
but it downloads the messages from either your internal Exchange/Mail
server, or from a mail server hosted on a web site). In order for that
to be able to work then the client (winforms) application needs to know
how to communicate with the server (whether over your LAN or via the
internet using webservices for example), and likewise from the server
side of things (as well as taking care of authentication etc) so I
imagine this would probably result in a large rewrite of your app (but
that obviously depends on how it's already structured) and on top of
that, from your post it looks like you want people to run your app
inside a browser so I don't think this is what you're trying to
achieve.

As far as I know, you can't 'host' a windows form inside of a web
browser (could be wrong there though as I don't tend to do a lot of web
development).

If you want your users to be able to run your app via a web browser
then I imagine you're going to have to re-code your UI as web
forms/pages that consume your backend application code.

I think both options may involve quite a lot of work on your side to
get it running but again, it really depends on how your current app is
structured as to how complex this is.

Hope that helps
Martin

Pini wrote:
Hi all,
I have a massive windows application that refernces a lot of assemblies
and doing a lot of DAL anf IO operations.
>
I want to expose this application to the interner so that a user can
access it using a web browser.
>
How can i do it?
Do i have to use smart client?
Can i do it using activex controls?
>
All the example i have seen in the group talk about embeddign specific
controls and not a massive form and exe to the web.
>
Any ideas?
Sep 7 '06 #4
Hi there,Thank you all for your answers, I did the following and
manages to get a good soultion to my problem without to built a smart
client application
Here what i did
I create a usercontrol and expose himslef as a com objetc.(this is very
easy)
then i added 2 functions that resister this class as an activex.
I created a setup project.
The created files are msi file and an setup.exe file.
I creates a cab file that contains all the exe and refernces.
I created an html file with the <objecttag.

Ho and dont forget. My usercontrol exposes a public function that
creates a new process wich runs my exe.

This means that who ever is trying to get to the html file is dowloding
the cab file wich extracts the exe and other files and then register
the com.

Now everything works great.

Read more at
http://blog.joycode.com/felix/articles/32905.aspx

Sep 12 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Alicia Haumann | last post: by
2 posts views Thread by Roose | last post: by
2 posts views Thread by Furer Ramon | last post: by
1 post views Thread by Dominic via DotNetMonster.com | last post: by
reply views Thread by Mike Chamberlain | last post: by
2 posts views Thread by Budhi Saputra Prasetya | last post: by
reply views Thread by Budhi Saputra Prasetya | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.