let me introduce my self first, my name is kevin, i live in ohio... ive been programming as a hobby off and on for about 4 years and im new to c#

The program im working on is to check a myspace... ive already automated the login process but i need to use MSHTML to need if new comments, images have arrived.... now the code i have now is.

mshtml.IHTMLDocument2 document1 = (mshtml.IHTMLDocument2)this.web.Document;

text = document1.body.outerHTML;

StreamWriter writer1 = new StreamWriter("C:/t.txt");

writer1.Write(text);

writer1.Close();

this writes it to the text... now of course i figured i could just do an Indexof("New Comments") but...

myspace website code is wierd.. take a look at this..












as you can see they made up a table and depending on if you have them or not it changes its class to show inficator or hide indicator.... now my question is...isnt there a way with mshtml that i can goto a specific ID like id=indicatorVideoComments and then see if the class is hidden or showing, thus indicating you have new messages...ect? im not sure where to look for a code like this so any help on this would be appreciated.