问题描述
您好,
进度条有问题;虽然
" progressbar1.visible = True"出现在我看不见的
" progressbar1"单击button1时可以看到控制,在执行我的外部进程
之前,它会在外部
进程完成处理后出现。并且我的主要和唯一的形式(form1)不能在外部进程处理时进行交互。我怎么能摆脱
呢?
这是代码:
Private Sub Button1_Click_1(ByVal sender As System.Object,ByVal e As
System.EventArgs)处理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(成功完成,MsgBoxStyle.Information,
完成)
结束子
谢谢和问候......
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...
推荐答案
谢谢:)
Thanks :)
我会把它放在同义词列表中。 ;)
Armin
I''ll put it in my synonym list. ;)
Armin
这篇关于进程运行时无法显示进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!