473,655 Members | 3,112 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1572
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.d l
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*smlin fo.com.br> wrote in message
news:eL******** ******@tk2msftn gp13.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*smlin fo.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.c om/downloads/details.aspx?Fa milyID=325a8f15-fe7b-4087-aa46-6d3e1b6108e0>

MSDN documentation link:

<URL:http://msdn.microsoft. com/library/en-us/dv_vstechart/html/vjtskMigratingJ avaAppletsToMic rosoftJBrowserC ontrols.asp>

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

<URL:http://support.microso ft.com/?scid=kb;EN-US;311334>
<URL:http://support.microso ft.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******** ******@TK2MSFTN GP15.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
7491
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 controls in a form (or another control), the designer likes to "touch" each of my custom properties -- either by trying to "set" it to a default value (null/zero) or trying to "get" it's value. This is a real PITA because often times calling "get" on...
0
1583
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 is very long. After 30secondes it works fine With the tool "Assembly Binding Log Viewer" (FUSLOGVW), i see that the CLR search the assembly mscorlib.ressource on the server not at the port 18802 but at the port 80 This call are very long because...
4
1877
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 session (user). I'm certain it's a simple solution for this. But I have not been able to locate it yet. Usually in the old days, I would just generate input hidden tags in the
2
2013
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 200(successfully loaded). I am suspecting this may be an issue with being fully trusted dll. I experimented with the ODBC connection on a Webform control - it worked fine. I put the ODBC connection on the aspx page - it worked fine. I put the...
0
2485
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 to the webpage (typically to tell it that it has finished doing something). I started digging around and found out that I needed to implement a COM interface for the .NET user control, and pick up the events from that in Javascript on the...
1
1670
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. Thanks.
9
15357
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 function for a comboBox when selectitemindexchanged happens it will trigger. I know it goes into that because I did a alert("test"). Now in there I want to take the item in the comboBox and put it in the textbox that is runat="server". I know I have...
0
1209
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 lot of coding for just one use control. Well, I have many user controls and am looking for a very simple and universial approach. The problem is: I have a webpage test.aspx and on it I can load any user control I want based on what the user...
2
2361
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 very detailed, but I'll keep it short. I have a subroutine shown below which adds a tabpanels to a tabcontainer(Tabs1) based for each object in a collection. Then for each tabpanel I try to add a usercontrol named uWebPage. But when the...
0
8380
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8296
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8710
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1598
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.