[原创]VB.net中屏弊Alt+F4最简单的方法
[watermark]窗口在关闭的时候会激活FormClosing事件,所以在这个事件中直接禁止关闭即可,具体实现代码如下,非常简单:
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
e.Cancel = True
End Sub
[/watermark] |