Private Sub ss_Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown ‘对话框的KeyPreview属性需设置为True e.Handled = True If e.KeyValue = 27 Then Me.Close() End If End Sub
原文地址:https://www.cnblogs.com/rf8862/p/12274839.html
时间: 2024-10-11 05:27:31