Re: UserControl looks different



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
.



Relevant Pages

  • Re: UserControl looks different
    ... I compiled a UserForm into a dll and loaded ... rendering engine is .NET on Windows. ... ASP.NET, however, the rendering engine is the web browser's HTML engine. ... The fact that it's a User control doesn't change it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help! How to find which webpages were open when Safari was quit?
    ... other windows? ... Does it have a javascript debugger? ... It uses the same rendering engine as ... Tolbar, cool. ...
    (uk.comp.sys.mac)
  • Re: Drawing in a user control
    ... the particular drawing should take place and ONLY draw in the OnPaint ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... I am creating a user control with several methods, ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Windows firewall GPO
    ... What is the easiest way to allow user control over the windows ... He's convinced that this is causing him problems with his norton 360 ... If it's just for this PC, stop and/or disable the underlying windows service ... Also explain to him that you can't have two firewall products active at ...
    (microsoft.public.windows.server.sbs)
  • Accessing IE features from embedded WinForms control
    ... I have been experimenting with embedding .NET Windows Forms User Controls ... My User Control needs to be able to access my Web Service that is ... Windows Forms control so that it can pass the credentials to the web ... the logon credentials that IE uses to logon to my web site? ...
    (microsoft.public.dotnet.framework.aspnet)