473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Winforms usercontrol on a Webpage?

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
5 1562
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
"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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lecture Snoddddgrass | last post by:
Hi, When I create a UserControl-derived object, I often expose various public properties. One of the things that I hate about the WinForms designer is that if I decide to embed one of these...
0
by: Cedric | last post by:
I have a WebPage with a usercontrol (webcomponent.dll). With the port 80 on the server, the webpage and the usercontrol works fine If i change the port (18802), the time of loading the usercontrol...
4
by: Kjell Arne | last post by:
Hi, How do one add parameters to a URL from a UserControl? My problem is that I want to set a unique value to the webpage when the page loads. This value I will use as a identifier for that...
2
by: Kurt Denhoff | last post by:
I have an odbc connection on a Winforms UserControl when used within a WinForms project it works fine but when I use it on an aspx page the object doesn't show. The IIS log indicates code...
0
by: jonathan.beckett | last post by:
I have been working on a client project recently that is using winforms ..NET user controls within web pages in Internet Explorer, and need to find out how to make the user control communicate back...
1
by: Mark | last post by:
What is the difference between a "user control" for Web Forms vs. Windows Forms? I have extensive use of user controls (.NET 1.1) in Web forms. Just wondering how they differ for Windows Forms. ...
9
by: davidr | last post by:
Hi, I've researched this a lot and have a well understanding but still can't get the darn textbox in the javascript. I have a textbox that is set to runat="server" and I have a client...
0
by: davidr | last post by:
Hi, I've read about bubble events and setting up the event args and several other methods to have an event that occurs in a usercontrol flow up to the parent. The problem is each one entails a...
2
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I'm trying to add a System.Web.UI.UserControl (Not a System.Web.UI.WebControl) to an asp.net ajax tabpanel. Unfortunately it doesn't appear that this is possible. This question could get...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.