Accessing HTML code with c# : <p>I am currently working on a project where I want to manipulate a website with help of a a small program, preferably in c#. The idea is to go to facebook, xing etc. copy out all messages I received. I can then write an answer without having to open the website and navigating through it. Its more of a programming practice excercise then anything useful. </p>

<p>Now my question: I have programmed someting similar using cursor positions via VBA. As you can imagine, thats very fragile. I'd like to reference the HTML elements directly via their ID. I tried a macro addon (imacros), but that doesn't really meet my requirements. Do you guys have any good ideas?</p>

<p>Thanks ahead! </p>
