📜  vb 在表单之间切换 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:10.353000             🧑  作者: Mango

代码示例1
Private objFromForm As FormA

Sub New(FromForm As FormA)
    InitializeComponent()
    objFromForm = FromForm
End Sub

Private Sub FormB_FormClosing(sender As Object, e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
    objFromForm.Visible = True
End Sub