Yes, sorry, I now see I have explained myself poorly.
I have a MDI form, which adds a user control (which has three textboxes) in each MDIChildForm. When adding the control I create a new instance like so:
vb.net Code:
Private Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs) Handles NewToolStripMenuItem.Click, NewToolStripButton.Click, NewWindowToolStripMenuItem.Click ' Create a new instance of the child form. Dim ChildForm As New System.Windows.Forms.Form ' Make it a child of this MDI form before showing it. ChildForm.MdiParent = Me m_ChildFormNumber += 1 ChildForm.Text = "Untitled " & m_ChildFormNumber ChildForm.Controls.Add(New UserControl) ChildForm.Show() End Sub
I want to get the control collection to harvest the data inputed by the user in each textbox. I had created read only properties in the user control so it would be easier, but, for some reason, when reading it comes back empty.





Reply With Quote