Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Windows Usercontrol inside an HTML page (not an IIS hosted ASPX page).
 

Windows Usercontrol inside an HTML page (not an IIS hosted ASPX page).

I'm searching for a way to show a windows usercontrol inside an HTML page (not an IIS hosted ASPX page). This weird requirement is to embed my usercontrol with windows controls which is a part of the Outlook Addin project in a webpage. This application runs on client's machine and has no access to any IIS servers.

Can anybody please help me!
Vipin Hari  Wednesday, January 30, 2008 10:27 AM

You can use the object tag to host windows forms usercontrol inside a web page, something like this

Code Snippet


<html>
<body>

<object id="UserControl2"
classid="http:dll/WinFormSampleControls.dll#WinFormSampleControls.UserControl2"
height="300" width="300" VIEWASTEXT>
</object>

</body>
</html>

Zhi-Xin Ye  Tuesday, February 05, 2008 4:17 AM

You can use the object tag to host windows forms usercontrol inside a web page, something like this

Code Snippet


<html>
<body>

<object id="UserControl2"
classid="http:dll/WinFormSampleControls.dll#WinFormSampleControls.UserControl2"
height="300" width="300" VIEWASTEXT>
</object>

</body>
</html>

Zhi-Xin Ye  Tuesday, February 05, 2008 4:17 AM

You can use google to search for other answers

Custom Search

More Threads

• IResourceService
• Unable to locate license assembly and third party controls
• Advice Appreciated : Building new Control Similar to TabControl
• From java packages to C# assemblies, how to redesign?
• Put all text from a big file into a textbox
• Select a value from a design-time dropdown list
• SmartTags problem
• adding designtime support for property of usercontrol (InitializeComponents)
• ToolStripPanel
• Windows Forms Designer cannot display a UserControl inherited from a generic UserControl