我希望你能帮助我的麻烦。我有 1 个表单作为父 MDI (frmParent.vb) 并有 2 个子表单 (frmChild01.vb & frmChild02.vb)。
父表单的代码如下。
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
我的问题是当用户单击 button1 时如何设置 label1.text
提前谢谢...