发信人: scottlai()
整理人: cobe(1999-09-30 00:41:06), 站内信件
|
只要在你需要的地方,比如按扭,在事件过程中加入
Shell "rundll32.exe user.exe,exitwindows"
就可以了。
e.g.
Private Sub Command1_Click()
Shell"rundll32.exe user.exe,exitwindows"
End Sub
注意:在调试前先保存工程,以免运行时关机而丢失未保存的文档
-- ※ 来源:.月光软件站 http://www.moon-soft.com.[FROM: 202.103.135.73]
|
|