Re: UserControl looks different
- From: "eransha" <eransha.groups@xxxxxxxxx>
- Date: 2 Jan 2007 08:32:05 -0800
Laurent,
This is exactly what I did. I compiled a UserForm into a dll and loaded
it in two ways:
once in a normal windows forms application, and once as a part of the
web page. The control looks different on each.
Laurent Bugnion [ASP.NET MVP] wrote:
Hi,
eransha wrote:
Eliyahu,
Thanks for the response. But both window form and browser "see" the
same graphic dlls when it comes to .net GUI, otherwise what's the point
in desiging the GUI of a user control if it ends up totaly different?
I think you are confused about ASP.NET. In WinForms applications, the
rendering engine is .NET on Windows. The controls look accordingly. On
ASP.NET, however, the rendering engine is the web browser's HTML engine.
It's a totally different environment, not even mentioning a different
application model. The fact that it's a User control doesn't change it.
That said, there is a possibility to expose WinForms user controls on IE
only, and on Windows only, as an ActiveX control. The .NET framework
must be installed on the client. Is that what you want?
http://www.codeproject.com/cs/miscctrl/htmlwincontrol.asp
I wouldn't recommend it, though.
HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
.
- Follow-Ups:
- Re: UserControl looks different
- From: Laurent Bugnion [MVP]
- Re: UserControl looks different
- References:
- UserControl looks different
- From: eransha
- Re: UserControl looks different
- From: Eliyahu Goldin
- Re: UserControl looks different
- From: eransha
- Re: UserControl looks different
- From: Laurent Bugnion [ASP.NET MVP]
- UserControl looks different
- Prev by Date: Session State problems for multiple users
- Next by Date: Re: Understanding GAC
- Previous by thread: Re: UserControl looks different
- Next by thread: Re: UserControl looks different
- Index(es):
Relevant Pages
|