473,804 Members | 3,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Winform in Web Page

I'm trying to embed a winform control into an HTML page and I don't seem to be getting anywhere..

I've put the following object tag in the body of the HTML document

<object id="UpdateContr ol11"
classid="http://lafdev2/reportControl/TSG.RiskManagem ent.RiskManagem entControl.dll# TSG.RiskManagem ent.RMMain" width=100%
height=100%>

When I open the web page there is just a box there with no control in it. I try to attach to the IExplorer process to debug and the
constructor is never called yet the assembly is in my download cache. Is there anything else that I need to do to create this
control? Also, can I use javascript and VB script to set properties on this object once it is in the web page?

Any help is appreciated.

Thanks
Scott
Nov 18 '05 #1
5 2206
Is your windows control functioning correctly in a windows form? I used to
have a link, but it seems this link no longer works, you may trying
searching the site to see if you have more luck than me
http://www.gotdotnet.com/team/window...esourcing.aspx

Also, can I use javascript and VB script to set properties on this object
once it is in the web page? Yes.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in message
news:eG******** ******@TK2MSFTN GP10.phx.gbl... I'm trying to embed a winform control into an HTML page and I don't seem
to be getting anywhere..

I've put the following object tag in the body of the HTML document

<object id="UpdateContr ol11"
classid="http://lafdev2/reportControl/TSG.RiskManagem ent.RiskManagem entControl.dll# TSG.RiskManagem ent.RMMain"
width=100%
height=100%>

When I open the web page there is just a box there with no control in it.
I try to attach to the IExplorer process to debug and the
constructor is never called yet the assembly is in my download cache. Is
there anything else that I need to do to create this
control? Also, can I use javascript and VB script to set properties on
this object once it is in the web page?

Any help is appreciated.

Thanks
Scott

Nov 18 '05 #2
Yes, it works fine in a winform. The assembly doesn't reference any other assemblies (Except those in the framework) and it is
signed. I also have an entry for it to run with full trust (Corresponding to the key the assembly is signed with).

Yes, that link just brings up Whidbey stuff :(
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message news:e7******** *****@TK2MSFTNG P10.phx.gbl...
Is your windows control functioning correctly in a windows form? I used to
have a link, but it seems this link no longer works, you may trying
searching the site to see if you have more luck than me
http://www.gotdotnet.com/team/window...esourcing.aspx

Also, can I use javascript and VB script to set properties on this object
once it is in the web page?

Yes.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in message
news:eG******** ******@TK2MSFTN GP10.phx.gbl...
I'm trying to embed a winform control into an HTML page and I don't seem
to be getting anywhere..

I've put the following object tag in the body of the HTML document

<object id="UpdateContr ol11"
classid="http://lafdev2/reportControl/TSG.RiskManagem ent.RiskManagem entControl.dll# TSG.RiskManagem ent.RMMain"
width=100%
height=100%>

When I open the web page there is just a box there with no control in it.
I try to attach to the IExplorer process to debug and the
constructor is never called yet the assembly is in my download cache. Is
there anything else that I need to do to create this
control? Also, can I use javascript and VB script to set properties on
this object once it is in the web page?

Any help is appreciated.

Thanks
Scott


Nov 18 '05 #3
Oh yeah, the assembly also get loaded into the download cache, so I know it's at least getting the assembly part...

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message news:e7******** *****@TK2MSFTNG P10.phx.gbl...
Is your windows control functioning correctly in a windows form? I used to
have a link, but it seems this link no longer works, you may trying
searching the site to see if you have more luck than me
http://www.gotdotnet.com/team/window...esourcing.aspx

Also, can I use javascript and VB script to set properties on this object
once it is in the web page?

Yes.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in message
news:eG******** ******@TK2MSFTN GP10.phx.gbl...
I'm trying to embed a winform control into an HTML page and I don't seem
to be getting anywhere..

I've put the following object tag in the body of the HTML document

<object id="UpdateContr ol11"
classid="http://lafdev2/reportControl/TSG.RiskManagem ent.RiskManagem entControl.dll# TSG.RiskManagem ent.RMMain"
width=100%
height=100%>

When I open the web page there is just a box there with no control in it.
I try to attach to the IExplorer process to debug and the
constructor is never called yet the assembly is in my download cache. Is
there anything else that I need to do to create this
control? Also, can I use javascript and VB script to set properties on
this object once it is in the web page?

Any help is appreciated.

Thanks
Scott


Nov 18 '05 #4
Updated:

I receive the following error when I run the URL in the address bar of the browser..

An unhandled exception of type 'System.NullRef erenceException ' occurred in IEExec.exe

"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in message news:eG******** ******@TK2MSFTN GP10.phx.gbl...
I'm trying to embed a winform control into an HTML page and I don't seem to be getting anywhere..

I've put the following object tag in the body of the HTML document

<object id="UpdateContr ol11"
classid="http://lafdev2/reportControl/TSG.RiskManagem ent.RiskManagem entControl.dll# TSG.RiskManagem ent.RMMain" width=100%
height=100%>

When I open the web page there is just a box there with no control in it. I try to attach to the IExplorer process to debug and the constructor is never called yet the assembly is in my download cache. Is there anything else that I need to do to create this
control? Also, can I use javascript and VB script to set properties on this object once it is in the web page?

Any help is appreciated.

Thanks
Scott

Nov 18 '05 #5
drumroll....... ........

it's time to see the code.
post some code that reproduces the problem

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in message
news:eZ******** ******@TK2MSFTN GP12.phx.gbl...
Updated:

I receive the following error when I run the URL in the address bar of the
browser..

An unhandled exception of type 'System.NullRef erenceException ' occurred in
IEExec.exe

"Scott Meddows" <sc************ ******@tsged-removeme.com> wrote in message
news:eG******** ******@TK2MSFTN GP10.phx.gbl...
I'm trying to embed a winform control into an HTML page and I don't seem
to be getting anywhere..

I've put the following object tag in the body of the HTML document

<object id="UpdateContr ol11"
classid="http://lafdev2/reportControl/TSG.RiskManagem ent.RiskManagem entControl.dll# TSG.RiskManagem ent.RMMain"
width=100%
height=100%>

When I open the web page there is just a box there with no control in it.
I try to attach to the IExplorer process to debug and

the
constructor is never called yet the assembly is in my download cache. Is
there anything else that I need to do to create this
control? Also, can I use javascript and VB script to set properties on
this object once it is in the web page?

Any help is appreciated.

Thanks
Scott


Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
472
by: Brian Brown | last post by:
I have code which works as an asp.net page that posts an xml file to web page and gets a response back. When the the calls GetResponse() it goes into the page it's posting to to and works fine. When it's been ported to a winform it doesn't work on the GetResponse() call. I think it probably needs credentials but not sure what to use, tried a few ids w/o any luck.
5
4846
by: andrewcw | last post by:
I just need to host my HTML file within my WINFORM. I am sure there are articles on that, but I cant seem to find one or a simple KIOSK sample. ( No interaction, just view ). Thanks Andrew
3
1981
by: Skc | last post by:
My client's project consists of about 6 files maintenance programs that uses WinForm and grid for updates with lookup finders for each file. There is also a User file and security. There are also about 6 fairly standard reports. This project is supposed to be done in C# Winform with ADO.net and using MSDE, ActiveReports.Net. I had judged that it would take maybe a month to do the system. Number of users at 1 time should not exceed 10....
9
2739
by: Djavdet | last post by:
Hi everyone, I need to work with web sites from my program but i don't need to show web site content.. I only need to get web page change something in html document and either move on or send something back.. Basically pretty much the same what usually people would do with IE but no windows... I thought that it would be easier to implement using AxWebBrowser ActiveX control, but I can't figure out how to set that OCXState field if I...
6
14934
by: randy1200 | last post by:
I'm using Visual Studio 2005 and C#. I need to print a WinForm used for data entry as a graphic. In other words, I need to print the exact WinForm the user sees on the screen. I searched through the newsgroups, and found the code below. This seems reasonable, except for the fact that the author does not provide his SetSeq_Library. This is needed to load the Bitmap variable _ActiveFormImage. Any suggestions on how to capture a WinForm...
2
3743
by: jyanmin.fang | last post by:
Hi, In my current project, I need to embed an .NET winform usercontrol in the aspx page (via <Objecttag). This winform usercontrol has an event called DoEvent (void DoEvent()). This winform usercontrol will fire this event upon certain action by the user. I tried to let the aspx page subscribe to this event via <script for="winObj1" event="DoEvent()" language="javascript"> window.alert("window control event happen!");
1
365
by: moondaddy | last post by:
I had to repost this becuase I renewed-changed my msdn alias. Also, the asnwer in the other past did not understand what I'm trying to do, so I'll attempt to clarify. I have a .net 2.0 winforms app that calls a web service which creates creates a GUID and caches it, then passes the GUID back to the winform. then it opens a aspx page and passes the GUID as a parameter. this GUID is only cached for about 10 seconds and must be still...
14
2672
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both reference the same BLL in a separate assembly, and I have all three projects in a single solution file for development, with the two UI's each having a project reference to the BLL assembly. I created a Setup and Deployment package for the winform app...
0
1096
by: BriC | last post by:
I'm trying to write an winform application that can spider a web site. In essence, I'm doing it by calling: string htmlData = enc.GetString(browser.DownloadData(url)); Then using some regex to parse out the links from the html data contained in the string variable. This works fine so far. The links are being added to an arraylist to be used in my application. Now that I have the links I've got a problem: all links are not created...
0
9587
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
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
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
6857
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
5527
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
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2998
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.