Click here to Skip to main content
15,909,741 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ensuring text is always readable against background... Pin
Robert Rohde14-Jan-05 21:30
Robert Rohde14-Jan-05 21:30 
GeneralRe: Ensuring text is always readable against background... Pin
mav.northwind14-Jan-05 21:24
mav.northwind14-Jan-05 21:24 
GeneralFinal result.. Pin
Member 9615-Jan-05 6:05
Member 9615-Jan-05 6:05 
GeneralRe: Image Property Pin
14-Jan-05 11:33
suss14-Jan-05 11:33 
GeneralSend Javascript command to IE Pin
Chris Chavez14-Jan-05 10:10
sussChris Chavez14-Jan-05 10:10 
GeneralRe: Send Javascript command to IE Pin
Heath Stewart14-Jan-05 13:14
protectorHeath Stewart14-Jan-05 13:14 
GeneralRe: Send Javascript command to IE Pin
Chris Chavez18-Jan-05 3:27
sussChris Chavez18-Jan-05 3:27 
GeneralRe: Send Javascript command to IE Pin
Heath Stewart18-Jan-05 6:05
protectorHeath Stewart18-Jan-05 6:05 
No you cannot send JScript (Microsoft's implementation, which is what IE uses) to the document, but you can walk the DOM (document object model) yourself. Reference the Microsoft.mshtml.dll assembly in your project (should've been installed with VS.NET) and cast the AxWebBrowser2 to IHTMLDocument2, which is defined in the mshtml namespace.

From there it's a matter of casting objects to the interfaces that implement the methods, properties, or events you need. These members are named the same thing as in scripting because they are the objects that are scripted (script is merely an engine for using an object model, both in IE and Mozilla and many other applications).

For documentation on the HTML DOM, see the HTML and DHTML Reference[^] in the MSDN Library. There will be some differences since you'll be using an interop assembly (which proxies calls to the unmanaged COM server that is MSHTML, which the WebBrowser control (Internet Explorer) hosts for HTML rendering, etc.), but you shouldn't have any problems if you're familiar with the HTML DOM.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Send Javascript command to IE Pin
Chris Chavez19-Jan-05 5:09
sussChris Chavez19-Jan-05 5:09 
GeneralEthical Coding Style Pin
Wayne Phipps14-Jan-05 8:22
Wayne Phipps14-Jan-05 8:22 
GeneralRe: Ethical Coding Style Pin
Christian Graus14-Jan-05 8:28
protectorChristian Graus14-Jan-05 8:28 
GeneralRe: Ethical Coding Style Pin
Wayne Phipps14-Jan-05 8:41
Wayne Phipps14-Jan-05 8:41 
GeneralRe: Ethical Coding Style Pin
Christian Graus14-Jan-05 9:07
protectorChristian Graus14-Jan-05 9:07 
GeneralRe: Ethical Coding Style Pin
Wayne Phipps14-Jan-05 23:12
Wayne Phipps14-Jan-05 23:12 
GeneralRe: Ethical Coding Style Pin
Christian Graus15-Jan-05 9:45
protectorChristian Graus15-Jan-05 9:45 
GeneralAngle between 2 vectors Pin
flipper8614-Jan-05 7:30
flipper8614-Jan-05 7:30 
GeneralRe: Angle between 2 vectors Pin
Dave Kreskowiak14-Jan-05 7:49
mveDave Kreskowiak14-Jan-05 7:49 
QuestionHow do you determine MSAccess version? Pin
Hostia14-Jan-05 5:12
Hostia14-Jan-05 5:12 
AnswerRe: How do you determine MSAccess version? Pin
Rob Graham14-Jan-05 11:50
Rob Graham14-Jan-05 11:50 
GeneralProblems reading through XML file with XPathNavigator and XPathNodeIterator Pin
huckfinn14-Jan-05 4:57
huckfinn14-Jan-05 4:57 
GeneralRe: Problems reading through XML file with XPathNavigator and XPathNodeIterator Pin
leppie14-Jan-05 5:55
leppie14-Jan-05 5:55 
GeneralCOM in C# (regarding MSMQ) Pin
Esmo200014-Jan-05 4:44
Esmo200014-Jan-05 4:44 
GeneralExtracting Data From Text Files Pin
lizim14-Jan-05 3:52
lizim14-Jan-05 3:52 
GeneralRe: Extracting Data From Text Files Pin
Nick Parker14-Jan-05 4:09
protectorNick Parker14-Jan-05 4:09 
GeneralRe: Extracting Data From Text Files Pin
lizim14-Jan-05 4:17
lizim14-Jan-05 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.