Quote Originally Posted by ~Shieru No Tamashi~ View Post
That's what I am hardly trying to learn during those two past months, how to make use of HTTP wrappers, in vain.

@Thomas: Thank you for the answer, here's my new code:

Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        For i As Integer = 0 To NumberOfFriendPages.Text
            If WebBrowser1.Url.ToString() = "www.gaiaonline.com/friends" Then
                WebBrowser1.Document.GetElementById("select_all_checkbox").InvokeMember("click")
                WebBrowser1.Document.GetElementById("removefriend").InvokeMember("click")
                MessageBox.Show("Done")
            End If
            WebBrowser1.Refresh()
        Next
    End Sub
But do the InvokeMember function change the HTML original code or does it affect the current page?
It just effects the current page. There is no need to alter the html code.