按下Esc键窗体退出
Private Sub Form1_KeyDown(sender As Object, e As KeyEventArgs)
If e.KeyCode = Keys.Escape Then
Me.Close()
End If
End Sub
前提的窗体的 keyPreview 设为 true
混凝土结构耐久性设计标准GB-T50476-2019.pdf
欢迎关注微信公众账号ByCAD