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

C#

 
Generalnewbie question Pin
bouli22-Jan-04 3:54
bouli22-Jan-04 3:54 
GeneralRe: newbie question Pin
Colin Angus Mackay22-Jan-04 4:07
Colin Angus Mackay22-Jan-04 4:07 
GeneralRe: newbie question Pin
bouli22-Jan-04 4:10
bouli22-Jan-04 4:10 
GeneralRe: newbie question Pin
Heath Stewart22-Jan-04 4:35
protectorHeath Stewart22-Jan-04 4:35 
GeneralRe: newbie question Pin
bouli22-Jan-04 4:47
bouli22-Jan-04 4:47 
GeneralRe: newbie question Pin
Heath Stewart22-Jan-04 4:51
protectorHeath Stewart22-Jan-04 4:51 
GeneralRe: newbie question Pin
bouli22-Jan-04 4:54
bouli22-Jan-04 4:54 
GeneralRe: newbie question Pin
Nick Parker22-Jan-04 6:17
protectorNick Parker22-Jan-04 6:17 
GeneralRe: newbie question Pin
Bo Hunter22-Jan-04 12:23
Bo Hunter22-Jan-04 12:23 
GeneralDeferred Calculations Pin
BernardYardley22-Jan-04 3:36
BernardYardley22-Jan-04 3:36 
GeneralRe: Deferred Calculations Pin
Heath Stewart22-Jan-04 5:01
protectorHeath Stewart22-Jan-04 5:01 
GeneralRe: Deferred Calculations Pin
BernardYardley22-Jan-04 5:08
BernardYardley22-Jan-04 5:08 
GeneralRe: Deferred Calculations Pin
leppie22-Jan-04 6:21
leppie22-Jan-04 6:21 
General2 questions Pin
bouli22-Jan-04 2:41
bouli22-Jan-04 2:41 
GeneralRe: 2 questions Pin
Sune Trudslev22-Jan-04 4:25
professionalSune Trudslev22-Jan-04 4:25 
GeneralRe: 2 questions Pin
Heath Stewart22-Jan-04 4:54
protectorHeath Stewart22-Jan-04 4:54 
GeneralRe: 2 questions Pin
bouli22-Jan-04 5:32
bouli22-Jan-04 5:32 
GeneralProperly accessing ShDocVw interfaces... Pin
profoundwhispers22-Jan-04 0:57
profoundwhispers22-Jan-04 0:57 
How do you do that? Let's say you have the following code:

<br />
InternetExplorer ie = new InternetExplorer();<br />
IHTMLDocument2 doc = (IHTMLDocument2) ie.Document; //is this correct? should there be a new operator?<br />


//NOTE: How do I know when or not the method returns a "new" object vs. using the new keyword? eg. WebRequest wr = WebRequest.Create("...") not = new WebRequest (but I only know that because it's in the documentation) ??

Back to InternetExplorer: the problem arises when I try to access any of it's interfaces. Example:

<br />
Object oNull = 0;<br />
Object oNullString = "";<br />
InternetExplorer ie = new InternetExplorer();<br />
ie.Navigate("http://www.google.com/", ref oNull, ref oNullString, ref oNullString, ref oNullString);<br />
System.Threading.Thread.Sleep(5000);<br />
IHTMLElementCollection ec = null;<br />
ec = (ie.Document as IHTMLDocument2).all;<br />
<br />

All the above works perfectly. Now:

ec.item(I don't even know how to use the params properly) or ec.tags("BODY") for example all give me one error: Referenced object does not exist in memory, or something of that sort that means you can't access it.

Help! Good book? Good article?

Sammy

"A good friend, is like a good book: the inside is better than the cover..."
GeneralRe: Properly accessing ShDocVw interfaces... Pin
Heath Stewart22-Jan-04 4:49
protectorHeath Stewart22-Jan-04 4:49 
QuestionHow to display copyright sign (c in small circle,&#169;) in Label control? Pin
god4k21-Jan-04 22:35
god4k21-Jan-04 22:35 
AnswerRe: How to display copyright sign (c in small circle,&#169;) in Label control? Pin
Sune Trudslev22-Jan-04 0:35
professionalSune Trudslev22-Jan-04 0:35 
GeneralRe: How to display copyright sign (c in small circle,&#169;) in Label control? Pin
leppie22-Jan-04 6:23
leppie22-Jan-04 6:23 
AnswerRe: How to display copyright sign (c in small circle,&#169;) in Label control? Pin
Heath Stewart22-Jan-04 4:40
protectorHeath Stewart22-Jan-04 4:40 
GeneralRe: How to display copyright sign (c in small circle,&#169;) in Label control? Pin
Bo Hunter22-Jan-04 12:31
Bo Hunter22-Jan-04 12:31 
GeneralRe: How to display copyright sign (c in small circle,&#169;) in Label control? Pin
Heath Stewart22-Jan-04 12:44
protectorHeath Stewart22-Jan-04 12:44 

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.