Hi there,
There is a problem about progress bar; although the
"progressbar1.v isible = True" is present for my invisible
"progressba r1" control to make visible when button1 is clicked, before
execution of my external process, it appears after the external
process finishes processing. And my main and only form (form1) cannot
be interacted while external process is processing. How can i get rid
of it?
Here is the code:
Private Sub Button1_Click_1 (ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
progressbar1.vi sible = True
Dim psInfo As New System.Diagnost ics.ProcessStar tInfo("c:\blabl a.exe)
psInfo.WindowSt yle = System.Diagnost ics.ProcessWind owStyle.Normal
Dim myProcess As Process = System.Diagnost ics.Process.Sta rt(psInfo)
myProcess.WaitF orExit()
MsgBox(" Completed Successfully", MsgBoxStyle.Inf ormation,
"Completed" )
End Sub
Thanks and regards...
There is a problem about progress bar; although the
"progressbar1.v isible = True" is present for my invisible
"progressba r1" control to make visible when button1 is clicked, before
execution of my external process, it appears after the external
process finishes processing. And my main and only form (form1) cannot
be interacted while external process is processing. How can i get rid
of it?
Here is the code:
Private Sub Button1_Click_1 (ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
progressbar1.vi sible = True
Dim psInfo As New System.Diagnost ics.ProcessStar tInfo("c:\blabl a.exe)
psInfo.WindowSt yle = System.Diagnost ics.ProcessWind owStyle.Normal
Dim myProcess As Process = System.Diagnost ics.Process.Sta rt(psInfo)
myProcess.WaitF orExit()
MsgBox(" Completed Successfully", MsgBoxStyle.Inf ormation,
"Completed" )
End Sub
Thanks and regards...
Comment