Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
GeneralHelp on Context Sensitive Help Pin
LannieK9-Mar-05 10:41
LannieK9-Mar-05 10:41 
GeneralThreads Pin
Anonymous9-Mar-05 9:11
Anonymous9-Mar-05 9:11 
GeneralRe: Threads Pin
TylerBrinks9-Mar-05 10:20
TylerBrinks9-Mar-05 10:20 
GeneralRe: Threads Pin
TylerBrinks9-Mar-05 10:23
TylerBrinks9-Mar-05 10:23 
GeneralRe: Threads Pin
El'Cachubrey9-Mar-05 20:09
El'Cachubrey9-Mar-05 20:09 
GeneralPROBLEM: Mouse Navigation with embedded browser control Pin
AnzelVincir9-Mar-05 8:18
AnzelVincir9-Mar-05 8:18 
QuestionAccess to HTML data via COM with C#? Pin
Pikebu9-Mar-05 7:00
Pikebu9-Mar-05 7:00 
AnswerRe: Access to HTML data via COM with C#? Pin
Heath Stewart9-Mar-05 7:55
protectorHeath Stewart9-Mar-05 7:55 
Use tlbimp.exe to create a COM interop assembly from shdocvw.dll, or - in VS.NET - right-click on your project and click Add Reference. Click on the COM tab and find "Microsoft Internet Controls". Double-click to add an interop assembly to your project. Also repeat this process for mshtml.dll, or "Microsoft HTML Object Library". Add the following to the top of your source file:
using SHDocVw;
using mshtml;


In your code, instantiate the InternetExplorerClass, which will either create a new instance of IE if one doesn't exist or use an existing instance. Cast the Document property to IHTMLDocument2 (typically, which implements most properties and methods you're probably interested in) and walk the DOM similar to how you would in DHTML scripting (although you'll have to cast objects to certain interfaces at times, since different versions of interfaces implement different properties and methods.
InternetExplorerClass ie = new InternetExplorerClass;
IHTMLDocument3 doc = ie.Document as IHTMLDocument3;
if (doc != null)
{
  IHTMLElement e = doc.getElementById("table1");
  // ...
}


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]
QuestionIs it possible for me using session variables into a class? Pin
see079-Mar-05 6:37
see079-Mar-05 6:37 
AnswerRe: Is it possible for me using session variables into a class? Pin
TylerBrinks9-Mar-05 10:32
TylerBrinks9-Mar-05 10:32 
GeneralRe: Is it possible for me using session variables into a class? Pin
see079-Mar-05 12:09
see079-Mar-05 12:09 
GeneralRe: Is it possible for me using session variables into a class? Pin
Andy Brummer9-Mar-05 12:48
sitebuilderAndy Brummer9-Mar-05 12:48 
GeneralRe: Is it possible for me using session variables into a class? Pin
see079-Mar-05 12:53
see079-Mar-05 12:53 
GeneralPrinting Problem Pin
GoodQuestion9-Mar-05 5:35
GoodQuestion9-Mar-05 5:35 
QuestionShow 1st instance of application when starting 2nd instance? Pin
Kasdoffe9-Mar-05 5:22
Kasdoffe9-Mar-05 5:22 
AnswerRe: Show 1st instance of application when starting 2nd instance? Pin
TylerBrinks9-Mar-05 6:25
TylerBrinks9-Mar-05 6:25 
GeneralC# Timers Pin
GaMBiT_KC9-Mar-05 5:18
GaMBiT_KC9-Mar-05 5:18 
GeneralRe: C# Timers Pin
TylerBrinks9-Mar-05 6:32
TylerBrinks9-Mar-05 6:32 
GeneralRe: C# Timers Pin
Joseph Baker26-Mar-05 14:32
Joseph Baker26-Mar-05 14:32 
GeneralRe: C# Timers Pin
MoustafaS9-Mar-05 7:18
MoustafaS9-Mar-05 7:18 
GeneralRe: C# Timers Pin
TylerBrinks9-Mar-05 10:37
TylerBrinks9-Mar-05 10:37 
GeneralRe: C# Timers Pin
eggie59-Mar-05 18:53
eggie59-Mar-05 18:53 
GeneralRe: C# Timers Pin
TylerBrinks10-Mar-05 4:34
TylerBrinks10-Mar-05 4:34 
GeneralRe: C# Timers Pin
GaMBiT_KC9-Mar-05 20:34
GaMBiT_KC9-Mar-05 20:34 
QuestionIs there a way to disable FontAntialiasing/ClearType? Pin
Sebastian Schneider9-Mar-05 3:54
Sebastian Schneider9-Mar-05 3:54 

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.