C# click on a link of webpage
===

First of all, sorry for my bad english.

The qeustion is verry simple. I wan't to click on a link with C# (windows appliction form)

This is the code that i use:

    int number_to_show = Convert.ToInt32(listView1_new_message.SelectedItems[0].SubItems[4].Text);
                int a_to_click = (number_to_show * 5) + 2;
                string titel_of_message = listView1_new_message.SelectedItems[0].SubItems[1].Text;
                HtmlWindow SContentFrame = webBrowser1.Document.Window.Frames[1];
                HtmlWindow Frame_A = SContentFrame.Document.Window.Frames[2];
                HtmlElementCollection links = Frame_A.Document.GetElementsByTagName("b");
                int link_counter = 0;
                foreach (HtmlElement link in links) {
                    if (link_counter == a_to_click && link.InnerText.Equals(titel_of_message)) {
                        link.InvokeMember("Click");
                    }
                    link_counter++;
                }


And it want's to click (i see it happening in debugging, and when i do a messagebox with the clicking, the messagebox appears), but the webpage don't react.

This is the htmlcode that is in the <b></b> tag on the webpage:

    <b><a href="" onclick="OnPhoenixRead('/mail/MessageRead?sid=7613BA4BF987D55FD171D53FAA24A259C7FDE435&amp;userid=*******&amp;seq=+Q&amp;auth=+A&amp;srcfolder=INBOX&amp;uid=3291&amp;srch=0&amp;style=default'); return false">Doorgest: testing 2</a></b>

So somehow it doesn't click on the text... ( or doesn't activate the onclick event handler)

How can i make the program work like it should be??
Thanks in advantage :D
TWCrap
