473,811 Members | 3,264 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to: Access the Managed HTML Document Object Model


Hi,

I use, VS2005 C#

I have a Windows Forms UserControl hosted within Internet Explorer

According to MIcrosoft documentation:

http://msdn2.microsoft.com/en-us/lib.../ms171712.aspx
or
the local MSN (Installed with) VS2005.

....
You can access the HTML DOM representing the page on which your UserControl
is hosted in order to change the document's structure or open modal dialog
boxes, among many other possibilities.
To access DOM from a UserControl hosted in Internet Explorer:

1.Create your own custom derived class of the UserControl class. ....
2.Place the following code inside of your Load event handler for your
UserControl:
<<MISSING>><<MI SSING>><<MISSIN G>><<MISSING>>< <MISSING>>

the documentation is missing...!?

Can anyone tell me what to do?

Many Thanks,
Filippo
Mar 10 '06 #1
2 1900
Hello Filippo,

http://msdn2.microsoft.com/en-us/lib...12(VS.80).aspx

FB> I have a Windows Forms UserControl hosted within Internet Explorer
FB>
FB> According to MIcrosoft documentation:
FB>
FB> http://msdn2.microsoft.com/en-us/lib.../ms171712.aspx
FB> or
FB> the local MSN (Installed with) VS2005.
FB> ...
FB> You can access the HTML DOM representing the page on which your
FB> UserControl
FB> is hosted in order to change the document's structure or open modal
FB> dialog
FB> boxes, among many other possibilities.
FB> To access DOM from a UserControl hosted in Internet Explorer:
FB>
FB> 1.Create your own custom derived class of the UserControl class.
FB> ....
FB> 2.Place the following code inside of your Load event handler for
FB> your
FB> UserControl:
FB> <<MISSING>><<MI SSING>><<MISSIN G>><<MISSING>>< <MISSING>>
FB> the documentation is missing...!?
FB>
FB> Can anyone tell me what to do?
FB>
FB> Many Thanks,
FB> Filippo
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 10 '06 #2

Michael,

if you notice even on your page the documentation is not there:

"2. Place the following code inside of your Load event handler for your
UserControl:"

and then they do not put the code!!!!!!!!!!! !!!!!!!!

Filippo


"Michael Nemtsev" wrote:
Hello Filippo,

http://msdn2.microsoft.com/en-us/lib...12(VS.80).aspx

FB> I have a Windows Forms UserControl hosted within Internet Explorer
FB>
FB> According to MIcrosoft documentation:
FB>
FB> http://msdn2.microsoft.com/en-us/lib.../ms171712.aspx
FB> or
FB> the local MSN (Installed with) VS2005.
FB> ...
FB> You can access the HTML DOM representing the page on which your
FB> UserControl
FB> is hosted in order to change the document's structure or open modal
FB> dialog
FB> boxes, among many other possibilities.
FB> To access DOM from a UserControl hosted in Internet Explorer:
FB>
FB> 1.Create your own custom derived class of the UserControl class.
FB> ....
FB> 2.Place the following code inside of your Load event handler for
FB> your
FB> UserControl:
FB> <<MISSING>><<MI SSING>><<MISSIN G>><<MISSING>>< <MISSING>>
FB> the documentation is missing...!?
FB>
FB> Can anyone tell me what to do?
FB>
FB> Many Thanks,
FB> Filippo
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Mar 10 '06 #3

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

Similar topics

6
5273
by: Jon Davis | last post by:
I recently learned how to do an <OBJECT> alternative to <IFRAME> in current browsers using: <object id="extendedhtml" type="text/html" data="otherpage.html" width="250" height="400"></object> My question is how do I access the document DOM of this object in Javascript? For example, "alert(extendedhtml.innerHTML);" doesn't work and produces an unknown error. I'd like to both read and write to the document's body element's innerHTML...
2
1439
by: Jinsong Liu | last post by:
Hello Group: Sorry for double post. I posted this question on the XML group. Then realized this is the group where the question should be posted, since I am using .NET. I have an object model representing a XML document. At the end of the process, a XML document will be generated based on the data hold by the object model. I can validate the XML (when it is being generate) against a DTD. Is that possible I can get access to the DTD and
6
1905
by: _BNC | last post by:
Here's the breakdown: I have an old C DLL that I want to access via C#. I'm doing this via an outer DLL that wraps the old C DLL in an unmanaged C++ class, which is in turn wrapped in a Managed C++ class. Both these unmanaged C++ and managed C++ classes are compiled into a single assembly (DLL) that is accessed by C#. <--> <-->
5
2695
by: Lyle Fairfield | last post by:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/callnetfrcom.asp The Joy of Interoperability Sometimes a revolution in programming forces you to abandon all that's come before. To take an extreme example, suppose you have been writing Visual Basic applications for years now. If you're like many developers, you will have built up a substantial inventory of code in that time. And if you've been following...
2
2132
by: Filippo Bettinaglio | last post by:
Hi, I use, VS2005 C# I have a Windows Forms UserControl hosted within Internet Explorer According to MIcrosoft documentation: http://msdn2.microsoft.com/en-us/library(d=robot)/ms171712.aspx or
0
1206
by: Jarod_24 | last post by:
I've tried the WebBrowser in the System.Windows.Forms namespace, but it dosen't work when you instanciate an object from a class. It needs a Form to live in to work. My application allready has the ability to parse html. It send webrequests, get the html, extracts links, detects <base href=""> tags, <iframe>, <frame> tags and so on. The only problem is when the html contain loops, document.write() calls stuff defined in the Document...
2
1876
by: Marcus Kwok | last post by:
I have processing code (I'll call it the "model") written in native unmanaged pure C++, and I have put a GUI on top of it written using Windows Forms (.NET 1.1). The GUI is used to set the parameters for the model, and once all parameters are set and checked to be valid, I run the model. The model takes a long time to run, so I decided to run it in a background thread, and have it notify the GUI when it is complete. The GUI will then...
3
24091
by: cweeks | last post by:
I am using the Webbrowser control in VS 2005 C# Express to automate the navigation of pages on a partner's web site. The first page contains an <IFRAME> element: <iframe style='width:40; height:40'; align='center' marginwidth='0' marginheight='0' scrolling='no' frameborder='0' id='xyzlogin' name='xyzlogin' src='https://www.xyzcorp.com/accounts/ServiceLogin'> </iframe>
4
12454
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is this: can Access create the document and place it as an OLE object to the relevant table? Any help is greatly appreciated. Ricky
16
11140
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might know one way or the other whether that was true or not, or could point me to an article or help text that would. What I have seen so far online and in Access 2007 help seems to confirm the above. But that (or at least (b)) seems incredible that it...
0
9605
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
10647
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...
0
10386
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
10133
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
6889
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
5554
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
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
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
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.