By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

Winforms usercontrol on a Webpage?

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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
news:eL**************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #2

P: n/a
"Cesar Ronchese" <ronchese*smlinfo.com.br> schrieb:
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/en-us/dv_vstechart/html/vjtskMigratingJavaAppletsToMicrosoftJBrowserContro ls.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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
your link to

Using Windows Forms Controls in Internet Explorer:

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

is outdated, its a page not found now
Nov 21 '05 #4

P: n/a
"Brian Henry" <no****@nospam.com> schrieb:
Using Windows Forms Controls in Internet Explorer:

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

is outdated, its a page not found now


Thank you for pointing that out :-)!

New link:

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

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #5

P: n/a
Thank ya!

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eQ**************@TK2MSFTNGP15.phx.gbl...
"Brian Henry" <no****@nospam.com> schrieb:
Using Windows Forms Controls in Internet Explorer:

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

is outdated, its a page not found now


Thank you for pointing that out :-)!

New link:

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

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.