精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>编程开发>>● VB和Basic>>〓〓..各种开发技巧..〓〓>>系统和硬件操作>>VB Tips:如何在VB5中控制Windows9x关机

主题:VB Tips:如何在VB5中控制Windows9x关机
发信人: scottlai()
整理人: winsy(2003-03-05 16:30:09), 站内信件
只要在你需要的地方,比如按扭,在事件过程中加入 
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]

[关闭][返回]