Click here to Skip to main content
15,902,114 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Waiting on process to finish Pin
phraser15-Jul-05 9:34
phraser15-Jul-05 9:34 
GeneralRe: Waiting on process to finish Pin
rwestgraham15-Jul-05 10:45
rwestgraham15-Jul-05 10:45 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 11:24
mveDave Kreskowiak15-Jul-05 11:24 
GeneralRe: Waiting on process to finish Pin
phraser15-Jul-05 11:40
phraser15-Jul-05 11:40 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 11:48
mveDave Kreskowiak15-Jul-05 11:48 
GeneralRe: Waiting on process to finish Pin
phraser15-Jul-05 11:50
phraser15-Jul-05 11:50 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 16:58
mveDave Kreskowiak15-Jul-05 16:58 
GeneralRe: Waiting on process to finish Pin
phraser16-Jul-05 2:28
phraser16-Jul-05 2:28 
The code i use is as follows

ProgressBar1.Visible = True
ProgressBar1.Value = 0
Timer1.Enabled = True
Application.DoEvents()
Dim startInfo As System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process

startInfo = New System.Diagnostics.ProcessStartInfo("calc.exe")

pStart.StartInfo = startInfo
pStart.Start()
pStart.WaitForExit()
pStart.Close()

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
ProgressBar1.Value = ProgressBar1.Value + 1
If ProgressBar1.Value >= 100 Then _
ProgressBar1.Value = 0
Return

End Sub


How would i multi-thread the process?

Thanks
Oli
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak16-Jul-05 6:40
mveDave Kreskowiak16-Jul-05 6:40 
GeneralRe: Waiting on process to finish Pin
phraser16-Jul-05 7:58
phraser16-Jul-05 7:58 
GeneralResizing button controls Pin
Member 1325918815-Jul-05 7:21
Member 1325918815-Jul-05 7:21 
GeneralRe: Resizing button controls Pin
bneacetp16-Jul-05 15:34
bneacetp16-Jul-05 15:34 
GeneralBetween Syntax Pin
Capilano15-Jul-05 6:49
Capilano15-Jul-05 6:49 
GeneralRe: Between Syntax Pin
Rob Graham16-Jul-05 11:57
Rob Graham16-Jul-05 11:57 
GeneralPassing Values to A Dropdown Pin
15-Jul-05 6:48
suss15-Jul-05 6:48 
GeneralDeployment problem Pin
pharao9215-Jul-05 5:24
pharao9215-Jul-05 5:24 
GeneralRe: Deployment problem Pin
Dave Kreskowiak15-Jul-05 5:52
mveDave Kreskowiak15-Jul-05 5:52 
GeneralAligning the Buttons in the form Pin
prathiba_naresh15-Jul-05 4:06
prathiba_naresh15-Jul-05 4:06 
GeneralRe: Aligning the Buttons in the form Pin
Dave Kreskowiak15-Jul-05 5:18
mveDave Kreskowiak15-Jul-05 5:18 
GeneralRe: Aligning the Buttons in the form Pin
Anonymous15-Jul-05 5:46
Anonymous15-Jul-05 5:46 
GeneralRe: Aligning the Buttons in the form Pin
prathiba_naresh15-Jul-05 6:02
prathiba_naresh15-Jul-05 6:02 
Generaloracle on linux Pin
smita_roy14-Jul-05 23:08
smita_roy14-Jul-05 23:08 
GeneralRe: oracle on linux Pin
Dave Kreskowiak15-Jul-05 1:40
mveDave Kreskowiak15-Jul-05 1:40 
Generalhelp on crystal report Pin
fire8514-Jul-05 20:27
fire8514-Jul-05 20:27 
GeneralRe: help on crystal report Pin
Rizwan Bashir14-Jul-05 21:57
Rizwan Bashir14-Jul-05 21:57 

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.