Click here to Skip to main content
15,889,600 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to insert multiple records from DataGridView into Mysql database table using VB.Net in Windows Applications Pin
swaroop096-Apr-09 20:44
swaroop096-Apr-09 20:44 
AnswerRe: How to insert multiple records from DataGridView into Mysql database table using VB.Net in Windows Applications Pin
pdnet7-Apr-09 2:56
pdnet7-Apr-09 2:56 
QuestionRun Robocopy job from desktop pc's to a network share within an IP Address range Pin
Raymonde26-Apr-09 13:22
Raymonde26-Apr-09 13:22 
AnswerRe: Run Robocopy job from desktop pc's to a network share within an IP Address range Pin
Dave Kreskowiak7-Apr-09 3:44
mveDave Kreskowiak7-Apr-09 3:44 
QuestionRetrieve multiselect rows in TDBGrid Pin
Nitin19816-Apr-09 5:45
Nitin19816-Apr-09 5:45 
AnswerRe: Retrieve multiselect rows in TDBGrid Pin
Henry Minute6-Apr-09 6:40
Henry Minute6-Apr-09 6:40 
GeneralRe: Retrieve multiselect rows in TDBGrid Pin
Nitin19816-Apr-09 22:41
Nitin19816-Apr-09 22:41 
QuestionBackgroundworker.ReportProgress not displaying all of stream Pin
krazyazkid6-Apr-09 4:33
krazyazkid6-Apr-09 4:33 
Hi all I just have a question about the report progress on my background worker. Can anyone tell me what I am doing wrong with this code.

The problem I am having is the result window textbox2.text from my Sub BackgroundWorker3_ProgressChanged only shows some of the stream the last part of the stream is not displayed so I am guessing I am missing something to display the rest of the stream?


<code>

'Start NSLOOKUP

Private Sub NSLookupToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NSLookupToolStripMenuItem.Click

With Me.BackgroundWorker3
ToolStripStatusLabel1.Visible = True
ToolStripProgressBar1.Visible = True
ToolStripProgressBar1.Style = ProgressBarStyle.Marquee
Me.Cursor = Cursors.WaitCursor
.WorkerReportsProgress = True
.RunWorkerAsync()

End With
End Sub

'Start Do Work process

Private Sub BackgroundWorker3_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker3.DoWork
Dim lookup As Process
lookup = New Process
With lookup
.StartInfo.FileName = "nslookup"
.StartInfo.Arguments = TextBox1.Text
.StartInfo.UseShellExecute = False
.StartInfo.CreateNoWindow = True
.StartInfo.RedirectStandardOutput = True
lookup.Start()
Dim outputReader As StreamReader = .StandardOutput
outputReader.ReadToEnd()
Do While Not outputReader.EndOfStream
Loop
BackgroundWorker3.ReportProgress(1, outputReader.ReadLine)
End With
End Sub

'Start Progess of Process/Stream Output

Private Sub BackgroundWorker3_ProgressChanged(ByVal sender As Object, ByVal e As System.ComponentModel.ProgressChangedEventArgs) Handles BackgroundWorker3.ProgressChanged
TextBox2.Text = e.UserState.ToString
End Sub

'End BGW

Private Sub BackgroundWorker3_RunWorkerCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles BackgroundWorker3.RunWorkerCompleted
Me.Cursor = Cursors.Default
ToolStripStatusLabel1.Visible = False
ToolStripProgressBar1.Visible = False
MsgBox("NSLookup Complete")
End Sub
AnswerRe: Backgroundworker.ReportProgress not displaying all of stream Pin
Luc Pattyn6-Apr-09 4:39
sitebuilderLuc Pattyn6-Apr-09 4:39 
GeneralRe: Backgroundworker.ReportProgress not displaying all of stream Pin
krazyazkid6-Apr-09 4:49
krazyazkid6-Apr-09 4:49 
GeneralRe: Backgroundworker.ReportProgress not displaying all of stream Pin
Luc Pattyn6-Apr-09 4:57
sitebuilderLuc Pattyn6-Apr-09 4:57 
QuestionPaging in Datagrids Pin
parkash_C6-Apr-09 4:21
parkash_C6-Apr-09 4:21 
AnswerRe: Paging in Datagrids Pin
Henry Minute6-Apr-09 6:45
Henry Minute6-Apr-09 6:45 
GeneralRe: Paging in Datagrids Pin
parkash_C6-Apr-09 18:17
parkash_C6-Apr-09 18:17 
GeneralRe: Paging in Datagrids Pin
Vimalsoft(Pty) Ltd6-Apr-09 21:01
professionalVimalsoft(Pty) Ltd6-Apr-09 21:01 
GeneralRe: Paging in Datagrids Pin
parkash_C6-Apr-09 21:13
parkash_C6-Apr-09 21:13 
GeneralRe: Paging in Datagrids Pin
Henry Minute7-Apr-09 0:56
Henry Minute7-Apr-09 0:56 
GeneralRe: Paging in Datagrids Pin
parkash_C7-Apr-09 1:40
parkash_C7-Apr-09 1:40 
GeneralRe: Paging in Datagrids Pin
Henry Minute7-Apr-09 1:48
Henry Minute7-Apr-09 1:48 
Questionvb and flash Pin
ahlamissa6-Apr-09 2:38
ahlamissa6-Apr-09 2:38 
AnswerRe: vb and flash Pin
Dave Kreskowiak6-Apr-09 10:45
mveDave Kreskowiak6-Apr-09 10:45 
AnswerRe: vb and flash Pin
Christian Graus6-Apr-09 16:58
protectorChristian Graus6-Apr-09 16:58 
AnswerRe: vb and flash Pin
Anubhava Dimri6-Apr-09 21:50
Anubhava Dimri6-Apr-09 21:50 
Questionurgent: vb6 code to calculate 16 bit CRC-CCITT Pin
singende6-Apr-09 2:15
singende6-Apr-09 2:15 
AnswerRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
Jay Royall6-Apr-09 2:24
Jay Royall6-Apr-09 2:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.