V
Vjay77
In this code:
Private Sub downloadBtn_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
If Not (Me.downloadUrlTextBox.Text = "")
Then
Me.outputGroupBox.Enabled = True
Me.bytesDownloadedTextBox.Text = ""
Me.totalBytesTextBox.Text = ""
Me.progressBar.Minimum = 0
Me.progressBar.Maximum = 0
Me.progressBar.Value = 0
Dim dl As DownloadThread = New DownloadThread
dl.DownloadUrl = Me.downloadUrlTextBox.Text
AddHandler dl.CompleteCallback, AddressOf
DownloadCompleteCallback
AddHandler dl.ProgressCallback, AddressOf
DownloadProgressCallback
Dim t As System.Threading.Thread = New
System.Threading.Thread(New
System.Threading.ThreadStart(dl.Download))
t.Start()
End If
This line:
[code:1:58b099c7e5]
Dim t As System.Threading.Thread = New System.Threading.Thread(New
System.Threading.ThreadStart(dl.Download))
[/code:1:58b099c7e5]
shows underlined as being in error... and I can't figure out what is
wrong with my syntax...
please help
vjay
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
Private Sub downloadBtn_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
If Not (Me.downloadUrlTextBox.Text = "")
Then
Me.outputGroupBox.Enabled = True
Me.bytesDownloadedTextBox.Text = ""
Me.totalBytesTextBox.Text = ""
Me.progressBar.Minimum = 0
Me.progressBar.Maximum = 0
Me.progressBar.Value = 0
Dim dl As DownloadThread = New DownloadThread
dl.DownloadUrl = Me.downloadUrlTextBox.Text
AddHandler dl.CompleteCallback, AddressOf
DownloadCompleteCallback
AddHandler dl.ProgressCallback, AddressOf
DownloadProgressCallback
Dim t As System.Threading.Thread = New
System.Threading.Thread(New
System.Threading.ThreadStart(dl.Download))
t.Start()
End If
This line:
[code:1:58b099c7e5]
Dim t As System.Threading.Thread = New System.Threading.Thread(New
System.Threading.ThreadStart(dl.Download))
[/code:1:58b099c7e5]
shows underlined as being in error... and I can't figure out what is
wrong with my syntax...
please help
vjay
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups