2024-07-08 04:24:49
Private Sub Form1_Closing(sender As Object, e As CancelEventArgs) Handles Me.Closing
If MsgBox("Are you sure to exit?", vbYesNo + vbQuestion, "Exit") = vbYes Then
'此处放置注销硬件的代码
End
Else
e.Cancel = 1
End If
End Sub
2024-07-08 15:24:51