Hi guys,
I need your urgently help. I have extract each strings from mystrings to input them in the listview. Now I want to know how i can tick the checkboxes for each array in the listview when i'm checking for each "enabled" strings in the php source on each line?
Here's the code:
If you do know how to do this, I will be very grateful.
Thanks,
Mark
I need your urgently help. I have extract each strings from mystrings to input them in the listview. Now I want to know how i can tick the checkboxes for each array in the listview when i'm checking for each "enabled" strings in the php source on each line?
Here's the code:
VB.NET:
Private timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
timer1.Enabled = False
timer1.Stop()
Try
Dim URL1 As String = "http://www.mysite.com/myscript.php?user=test&pass=test"
Dim request1 As HttpWebRequest = CType(WebRequest.Create(URL1), HttpWebRequest)
Dim response1 As HttpWebResponse = CType(request1.GetResponse(), HttpWebResponse)
Dim reader1 As New StreamReader(response1.GetResponseStream())
Dim str1 As String = reader1.ReadToEnd()
Dim pattern1 As String = "(<p id='mystrings1'>(.*?)</p>(.*?)<span id=""mystrings2"">Enabled</td>)"
Dim matches1 As MatchCollection = Regex.Matches(str1, pattern1)
For Each x1 As Match In matches1
Dim StrArr1() As String = x1.Value.ToString().Split()
Listview1.Items.Add(x1.ToString())
Next x1
Catch ex As Exception
End Try
End Sub
If you do know how to do this, I will be very grateful.
Thanks,
Mark