For Programmers: Free Programming Magazines  


Home > Archive > C# > May 2005 > Running a C# program w/GUI through a web browser









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Running a C# program w/GUI through a web browser
Magnus Gran-Jansen

2005-05-14, 4:04 pm

Hi,

I have many thousand lines of C# code that uses System.Windows.*
frequently,
so it has a lot of GUI. This program processes data that is located on the
local machine and displays a graphical representation of this. I wish for
users to be able to use this program through the internet, where the
machine
containing the data is the server.

The code that processes the data and the code that displays the graphical
interface is already written, but as a single program. Is there an easy
way of getting the client-server functionality without splitting the
program
or writing too much code? Eg. executing the program through a web browser.

Thanks,
Magnus Gran-Jansen
shivakumarn

2005-05-16, 3:24 am

Hi Magnus,

Try considering Citrix MetaFrame on the server. So that all the clients who wants to use the application will be able to run the application through a browser. But your application will still look alike a Windows application. Try getting more information on how you can setup your server to run Citrix MetaFrame.

Shiva


quote:
Originally posted by Magnus Gran-Jansen
Hi,

I have many thousand lines of C# code that uses System.Windows.*
frequently,
so it has a lot of GUI. This program processes data that is located on the
local machine and displays a graphical representation of this. I wish for
users to be able to use this program through the internet, where the
machine
containing the data is the server.

The code that processes the data and the code that displays the graphical
interface is already written, but as a single program. Is there an easy
way of getting the client-server functionality without splitting the
program
or writing too much code? Eg. executing the program through a web browser.

Thanks,
Magnus Gran-Jansen

Lorad

2005-05-17, 8:58 pm

>
>
> Hi Mike, thanks for your answer.
>
> I just found something called Hosting .NET Windows Forms Controls in IE:
> http://www.syncfusion.com/FAQ/Windo.../FAQ_c101c.aspx
> http://www.15seconds.com/issue/030610.htm
>
> That seems to be similar to Java applets. Do you (or anyone else)
> know anything about this and if it would it apply to my situation?
>
> Thanks,
> Magnus Gran-Jansen


The items you listed would apply to your situation, but you would need to
pull your processing out into the web service and access the methods etc.
this way. The application could be hosted on the web page as described. It
would still be changes to your application. Once you pulled your application
appart you could just access the web service directly from the windows forms
app and not need a web browser at all, if you can install the application on
the client.......


Aleko

2005-05-19, 8:58 pm

You could add a Web Service to your GUI app, thus making it
web-accessible. The service would call the appropriate functions, just
as the UI does now. The GUI could be disabled or minimized when running
in "remote access mode".

Hope this helps,
Aleko

Bruce Wood

2005-05-19, 8:58 pm

The only thing I can suggest is Citrix Metaframe, or something similar
that allows you to run a virtual copy of Windows on the server and
display the UI remotely on the client. There may be versions that
require nothing more installed on the client than a browser, although
I've never heard of one.

Apart from this, as the other posters have mentioned, you have to
change your application.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com