Hello,
It's been a while since I last tackled VB, so I'm kind of rusty.
I'm adding a custom control to a child form 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 Dim XMLBook As New EditBook m_ChildFormNumber += 1 ChildForm.Text = "Untitled " & m_ChildFormNumber ChildForm.Controls.Add(XMLBook) ChildForm.Show() End Sub
I need to retrieve the info that the user entered in that control (two textboxes and a listbox) and save it into a xml (I know how to do the latter).
I just can't remember how to do it.
Thanks.





Reply With Quote