精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>编程开发>>● VB和Basic>>● VB和Basic(1)>>高级技巧>>VB Tips:如何在VB5中控制Windows9x关机

主题:VB Tips:如何在VB5中控制Windows9x关机
发信人: 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]

[关闭][返回]