dim myprocess as new process() 先定义一个进程变量
private sub button1_click(byval sender as system.object, byval e as system.eventargs) handles button1.click
myprocess.startinfo.filename = "notepad"
myprocess.startinfo.windowstyle = processwindowstyle.maximized
myprocess.start()
end sub
private sub button2_click(byval sender as system.object, byval e as system.eventargs) handles button2.click
myprocess.closemainwindow() 关闭进程
end sub
