vb.net中在form1窗体中放置三个按钮,这三个按钮分别对应不同的三个窗体,按下按钮进入对应的窗体中,这要怎么编程
如题,如何编程,在编的过程中dim f1 as new form2f1.show()这个按了按钮可以进入新的form2
再dim f2 as new form3()
f2.show()的时候就不能进入了form3了,会报错……请教高手 什么情况........我试了一下,没你说的那样。
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim f2 As New Form2
f2.Show()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim f3 As New Form3
f3.Show()
End Sub
End Class
补充:VB , 基础类