Progress bar cannot be shown while a process is running
- From: kimiraikkonen <kimiraikkonen85@xxxxxxxxx>
- Date: Wed, 03 Oct 2007 22:06:02 -0000
Hi there,
There is a problem about progress bar; although the
"progressbar1.visible = True" is present for my invisible
"progressbar1" 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.EventArgs) Handles Button1.Click
progressbar1.visible = True
Dim psInfo As New System.Diagnostics.ProcessStartInfo("c:\blabla.exe)
psInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal
Dim myProcess As Process = System.Diagnostics.Process.Start(psInfo)
myProcess.WaitForExit()
MsgBox(" Completed Successfully", MsgBoxStyle.Information,
"Completed")
End Sub
Thanks and regards...
.
- Follow-Ups:
- Re: Progress bar cannot be shown while a process is running
- From: kimiraikkonen
- Re: Progress bar cannot be shown while a process is running
- Prev by Date: Re: Problems changing image resolution in VB.NET
- Next by Date: Re: Determine color scheme used by app
- Previous by thread: System.Timers.Timer
- Next by thread: Re: Progress bar cannot be shown while a process is running
- Index(es):