form2中:
修改控件的可见级别,如改为Public
Public WithEvents TabControl1 As System.Windows.Forms.TabControl
Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
Public WithEvents TabPage2 As System.Windows.Forms.TabPage
form1中:
Dim frm As New Form2
frm.TabPage2.Text = "Test page"
frm.Show()