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 / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

Running a C# program w/GUI through a web browser

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Magnus Gran-Jansen - 10 May 2005 09:18 GMT
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
Peter van der Goes - 10 May 2005 13:29 GMT
> Hi,
>
[quoted text clipped - 15 lines]
> Thanks,
> Magnus Gran-Jansen

You'll have to redesign the interface using the web controls, which will
also entail quite a bit of interface handling code rewrite. AFAIK, there is
no easy way to "convert" a Windows app to a web app. If the Windows app was
properly designed, the data processing functionality (in separate methods
from code involved with the GUI) should easily transfer.

Signature

Peter [MVP Visual Developer]
Jack of all trades, master of none.

Magnus Gran-Jansen - 10 May 2005 15:46 GMT
Hi,

First, thankyou for your answer!

I just found something interesting called "Hosting Windows Forms controls in
Internet Explorer", where I create a Windows Control Library. Have you heard
about that? Do you know if it could be used for this?

> > Hi,
> >
[quoted text clipped - 21 lines]
> properly designed, the data processing functionality (in separate methods
> from code involved with the GUI) should easily transfer.
Peter van der Goes - 10 May 2005 17:48 GMT
> Hi,
>
[quoted text clipped - 5 lines]
> heard
> about that? Do you know if it could be used for this?

No, I haven't. Hopefully somebody else will jump in with more info. Do you
have a link?

Signature

Peter [MVP Visual Developer]
Jack of all trades, master of none.

Magnus Gran-Jansen - 10 May 2005 18:18 GMT
Here is some information on it:
http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c101c.aspx
http://www.15seconds.com/issue/030610.htm

I am currently having some problems getting just something basic of this to
work, but it seems like it is similar to Java applets.

> > Hi,
> >
[quoted text clipped - 8 lines]
> No, I haven't. Hopefully somebody else will jump in with more info. Do you
> have a link?
Alvin Bruney [MVP - ASP.NET] - 11 May 2005 23:13 GMT
Hosting will not work for you without a lot of work. Part of the reason is
that your control is manipulating desktop objects. IE's sandbox architecture
does not allow this. So, one approach I can think of is to take the existing
assemblies you have and port the code to a visual basic 6 project where you
can construct an ActiveX control out of the existing code. The output of the
ActiveX control is an object with a CLSID. Take the CLSID and embed it in a
webforms page so it runs as a COM control. That part is easy, just use an
object tag with the correct ID. For instance,
<object id="myObj" CLSID="asdf23432"/>

The difficult part is porting the code to vb6. From there, IE will call the
component and it will pop the activeX permissions control object requesting
permissions to execute code on the desktop. makes sense?

Signature

Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc

> Here is some information on it:
> http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c101c.aspx
[quoted text clipped - 18 lines]
>> you
>> have a link?

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.