Winforms usercontrol on a Webpage?

C

Cesar Ronchese

Hey all.

I need to show a usercontrol (built on Winforms) in a webpage, the same way
I do with OCX or Javascript (Object tag).

How can I do it?

[]s
Cesar
 
C

Cesar Ronchese

Found the code to show the object:

<OBJECT id="mycontrol1"
title="Test of Mycontrol"
height="90%" width="100%"

classid=http://localhost/generaltests/winforms/usercontrols/MyControlTest.dl
l#MyControlTest.ThisControl VIEWASTEXT
</OBJECT>

But if I change the url site different from Localhost, the component is not
loaded. What permissions I need to change to allow that?


Cesar





"Cesar Ronchese" <ronchese*smlinfo.com.br> wrote in message
Hey all.

I need to show a usercontrol (built on Winforms) in a webpage, the same way
I do with OCX or Javascript (Object tag).

How can I do it?

[]s
Cesar
 
H

Herfried K. Wagner [MVP]

Cesar Ronchese said:
I need to show a usercontrol (built on Winforms) in a webpage, the same
way
I do with OCX or Javascript (Object tag).

In General, you cannot create ActiveX *controls* with .NET, but you can
create controls for use within Internet Explorer.

J# Browser Controls provide developers with a way to migrate their existing
Java applet source code to run within the context of the .NET Framework

<URL:http://www.microsoft.com/downloads/details.aspx?FamilyID=325a8f15-fe7b-4087-aa46-6d3e1b6108e0>

MSDN documentation link:

<URL:http://msdn.microsoft.com/library/e...ingJavaAppletsToMicrosoftJBrowserControls.asp>

For .NET 1.0, controls as ActiveX are only supported hosted in MS IE 5+6:

<URL:http://support.microsoft.com/?scid=kb;EN-US;311334>
<URL:http://support.microsoft.com/?scid=kb;EN-US;317346>

Using Windows Forms Controls in Internet Explorer:

<URL:http://msdn.microsoft.com/msdnmag/issues/02/06/rich/rich.asp>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top