Maybe something like this:
vb.net Code:
  1. Private Sub CheckUncheckAll(ByVal newState As String)
  2.         For Each input As HtmlElement In Me.WebBrowser1.Document.GetElementsByTagName("input")
  3.             If input.GetAttribute("type") = "checkbox" Then
  4.                 input.SetAttribute("checked", newState)
  5.             End If
  6.         Next
  7.     End Sub
  8.  
  9.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  10.         If Button1.Text = "Check All" Then
  11.             CheckUncheckAll("true")
  12.             Button1.Text = "Uncheck All"
  13.         Else
  14.             CheckUncheckAll("false")
  15.             Button1.Text = "Check All"
  16.         End If
  17.     End Sub