Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Me.Hide()
form2_load()
End Sub
Private Sub form2_load()
Form2.Show()
End Sub
End Class
第二个form2 Public Class Form2
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Me.Hide()
form3_load()
End Sub
Private Sub form3_load()
Form3.Show()
End Sub
End Class
第三3个form3 Public Class Form3
Dim x, y, z As String
Private Sub Form3_Load(sender As Object, e As EventArgs) Handles MyBase.Load
x = Val(Form1.TextBox1.Text) + Val(Form1.TextBox2.Text)
y = Val(Form2.TextBox1.Text) + Val(Form2.TextBox2.Text)
z = x - y
Label1.Text = z