Basically there are two ways in which you can do your stuff:
1) using the HttpWebRequest class, you will have set the CookieContainer. See here for help how to do that:
[Only registered and activated users can see links. Click Here To Register...]
2) use the webbrowser object, and then you don't have to bother about cookies.
Good luck!