473,396 Members | 2,106 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,396 software developers and data experts.

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="UpdateControl11"
classid="http://lafdev2/reportControl/TSG.RiskManagement.RiskManagementControl.dll#TSG.R iskManagement.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 2190
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**************@TK2MSFTNGP10.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="UpdateControl11"
classid="http://lafdev2/reportControl/TSG.RiskManagement.RiskManagementControl.dll#TSG.R iskManagement.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*************@TK2MSFTNGP10.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**************@TK2MSFTNGP10.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="UpdateControl11"
classid="http://lafdev2/reportControl/TSG.RiskManagement.RiskManagementControl.dll#TSG.R iskManagement.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*************@TK2MSFTNGP10.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**************@TK2MSFTNGP10.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="UpdateControl11"
classid="http://lafdev2/reportControl/TSG.RiskManagement.RiskManagementControl.dll#TSG.R iskManagement.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.NullReferenceException' occurred in IEExec.exe

"Scott Meddows" <sc******************@tsged-removeme.com> wrote in message news:eG**************@TK2MSFTNGP10.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="UpdateControl11"
classid="http://lafdev2/reportControl/TSG.RiskManagement.RiskManagementControl.dll#TSG.R iskManagement.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**************@TK2MSFTNGP12.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.NullReferenceException' occurred in
IEExec.exe

"Scott Meddows" <sc******************@tsged-removeme.com> wrote in message
news:eG**************@TK2MSFTNGP10.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="UpdateControl11"
classid="http://lafdev2/reportControl/TSG.RiskManagement.RiskManagementControl.dll#TSG.R iskManagement.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
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....
5
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
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...
9
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...
6
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...
2
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...
1
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...
14
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...
0
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...
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: 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
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,...
0
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...
0
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,...
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.