VB.NET生成重复窗体
1 Public Class Form1 2 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click 3 Dim form2 As New Form2 4 form2.Show() 5 End Sub 6 End Class
生成2个窗体,form1,form2;
一个按钮:button1
功能延伸:可以加载重复的表单,达到直观对比数据目的
1 Public Class Form1 2 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click 3 Dim form2 As New Form2 4 form2.Show() 5 End Sub 6 End Class
生成2个窗体,form1,form2;
一个按钮:button1
功能延伸:可以加载重复的表单,达到直观对比数据目的