Embedding Winform control in page

Posted on 2011-04-26
Last Modified: 2012-05-11
Hi, has anyone managed to successfully embed a Winform control in a browser/ page using .Net v4.0.  I have had this working for years in a .Net v1.1 app using the <object> element.  I am now trying to upgrade to .Net v4.0 but I can't get the winform control to display.  I appreciate that I should really be upgrading  the control to something like silverlight but there is a lot of code/functionality and as an interim solution I just want to host the winform control in the page as I did before.

To get it working in v1.1 I had to assign full trust to the local intranet zone (the web app is running in an intranet) using the .Net configuration wizard.  To test that my problem was a security issue I could disable code access security using 'caspol -s off' command.  Neither of these exist in .Net v4 so I am a bit stumped.

Any help would be appreciated.

Question by:nicksbell
    LVL 9

    Expert Comment

    Ots rolled out and different in 4.0.

    For ur ref
    LVL 2

    Author Comment

    I am not sure how you reply helps me.  The linked article seems to be about ClientIDs on WebForms.  My issue relates to embedding WinForms in a web page.
    LVL 2

    Accepted Solution

    ok, after a lot more research it appears that this functionality is no longer supported in .Net Framework v4.  The best explanation I have found is in the following forum post:

    It seems that if you need to be able to embed a winform in a browser then the latest .net version you can use is v3.5.
    LVL 2

    Author Closing Comment

    I now have this working in .Net v3.5 which confirms the problem was v4 not allowing it.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now