H
hzred
Unregistered / Unconfirmed
GUEST, unregistred user!
用VB.net开发ASP.NET应用
以下代码打开c:/11.txt,但窗体就是不打开!Windows任务管理器中查看进程,已存在:
映像名称 用户名 CPU 内寸使用
NOTEPAD ASPNET 00 3068
手工结束进程后返回的代码:1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim myProcess As Process = System.Diagnostics.Process.Start("c:/11.txt"
myProcess.WaitForExit()
MessageBox.Show("Notepad was closed at: "
&
_
myProcess.ExitTime &
"."
&
_
System.Environment.NewLine &
"Exit Code: "
&
_
myProcess.ExitCode, "返回值", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
End Sub
以下代码打开c:/11.txt,但窗体就是不打开!Windows任务管理器中查看进程,已存在:
映像名称 用户名 CPU 内寸使用
NOTEPAD ASPNET 00 3068
手工结束进程后返回的代码:1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim myProcess As Process = System.Diagnostics.Process.Start("c:/11.txt"
myProcess.WaitForExit()
MessageBox.Show("Notepad was closed at: "
&
_
myProcess.ExitTime &
"."
&
_
System.Environment.NewLine &
"Exit Code: "
&
_
myProcess.ExitCode, "返回值", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
End Sub