im writing a program that downlaods poker hand historys for personal use, anyway, i havea label that iw ant to update me with what hand number the program is working on at the moment. anyway, the label does not update. it does not even output a number until the msg box comes up telling me the program is finished running. im going to be looking through a lot of hands so i want to be able to know progress. any ideas why the label wont update
ive also tried using a textbox to no avail
any help would be greatly appreciated
-Matt
VB.NET:
[FONT=Arial] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim hand1, hand2 As String
Dim hh, hn As Integer
Dim wc As New WebClient
Dim FILE_NAME As String = "C:\findch.txt"
Dim objWriter As New System.IO.StreamWriter(FILE_NAME, False)
CompTime = Environment.TickCount
hn = 1118519943
hh = 0
'Do While hn < 1210000000
For hn = 1118529943 To 1118529946
'updateHN(hn)
Label1.Text = hn
Dim sr As New StreamReader(wc.OpenRead("http://www.pokernetwork.co.uk/games/handhistory/?gameCode=P4&handNumber=" & hn))
hand1 = StripHTML(sr.ReadToEnd)
hand2 = hand1.IndexOf("rake", 0, hand1.Length)
If hand2 <> -1 Then
objWriter.WriteLine(hn)
hn = hn + 1
End If
Next
objWriter.Close()
MsgBox("Done")
End Sub
[/FONT]
ive also tried using a textbox to no avail
any help would be greatly appreciated
-Matt