I am having the hardest time accessing a child's TextBox1 property from my parent form.
This is what I have so far in my parent form:
From my parent form, I would like to run the following code for TextBox1 located in the active child.
I have been fiddling around with ActiveMdiChild, but to no avail.
Any help on how to do this is much appreciated!
This is what I have so far in my parent form:
Code:
Public Class MDITextEditor
Private Sub CCToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CCToolStripMenuItem.Click
Dim child As New ChildForm()
child.MdiParent = Me
child.Show()
child.Activate()
End Sub
End ClassCode:
Private Sub fcToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles fcToolStripMenuItem.Click
TextBox1.Font = New Font("Times New Roman", 20, TextBox1.Font.Style)
End subAny help on how to do this is much appreciated!