我希望你能幫助我的麻煩。 我有1個窗體作爲父級MDI(frmParent.vb)並且有2個子窗體(frmChild01.vb & frmChild02.vb)。VB.NET MDI子集其他子屬性
父窗體的代碼如下所示。
Private Sub OpenChild01ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenChild01ToolStripMenuItem.Click
Dim child01 As frmChild01
child01 = New frmChild01()
child01.MdiParent = Me
child01.Show()
End Sub
Private Sub OpenChild02ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenChild02ToolStripMenuItem.Click
Dim child02 As frmChild02
child02 = New frmChild02()
child02.MdiParent = Me
child02.Show()
End Sub
frmChild01已經Button1的
frmChild02已經LABEL1
我的問題是我怎麼能設置label1.text當用戶單擊button
在此先感謝...