vb中退出按钮使用Exit Sub命令。
Exit XXXX是VB中用于提前结束某一模块的命令。
例如:
Exit Sub
Exit Function
Exit For
Exit Do
…………
用这个代码
Private Sub Form_Unload(Cancel As Integer)
InputBox "00", "00", "00"
End Sub
直接粘贴进去,试试
unload me
me.close
要事件吗?
Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs)
//你想输入的代码
End Sub
在相应位置,加上语句:
exit
exit命令