📄 frmshown.vb
字号:
Imports Microsoft.VisualBasic
Imports System
Imports System.Windows.Forms
Imports System.Diagnostics
Imports System.ComponentModel
Namespace CodeForChapter2
Public Partial Class frmShown
Inherits Form
Public Sub New()
InitializeComponent()
End Sub
Private Sub frmShown_Closing(ByVal sender As Object, ByVal e As CancelEventArgs) Handles MyBase.Closing
' when this form is closed
' via Ok or via Close method call
Debug.WriteLine("Closing")
End Sub
Private Sub frmShown_Deactivate(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Deactivate
' when this form goes to the background
' (closed, smart minimised or otherwise)
Debug.WriteLine("Deactivate")
End Sub
Private Sub menuItem1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles menuItem1.Click
' Same as clicking on OK button
' If form only has an X, this still closes the form as if it had an OK
Me.Close()
End Sub
End Class
End Namespace
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -