Results 1 to 7 of 7

Thread: [RESOLVED] Retrieving data from user control in mdi child

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2008
    Location
    Dominican Republic
    Posts
    733

    Resolved [RESOLVED] Retrieving data from user control in mdi child

    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:
    1. Private Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs) Handles NewToolStripMenuItem.Click, NewToolStripButton.Click, NewWindowToolStripMenuItem.Click
    2.         ' Create a new instance of the child form.
    3.         Dim ChildForm As New System.Windows.Forms.Form
    4.         ' Make it a child of this MDI form before showing it.
    5.         ChildForm.MdiParent = Me
    6.  
    7.         Dim XMLBook As New EditBook
    8.  
    9.         m_ChildFormNumber += 1
    10.         ChildForm.Text = "Untitled " & m_ChildFormNumber
    11.  
    12.         ChildForm.Controls.Add(XMLBook)
    13.         ChildForm.Show()
    14.     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.
    Last edited by tassa; Feb 23rd, 2010 at 12:02 PM.
    "In our profession, precision and perfection are not a dispensable luxury, but a simple necessity."
    Niklaus E. Wirth


    Rate any post that helped you, it's a good way of saying thanks
    Please specify your Visual Studio Version!

    Why rating is useful

    My Code Bank Submissions: How to determine Windows Version| Working With Mouse Events | Blocking Input Using API | Get host's IP | Minimize to system tray "animated" | Colored ListBox (custom fonts, colors, highlight) Updated -New Class! | [VS 2008] Strong encryption and hashing class - Updated! 31/August/2009 | Create a shortcut using IWshRuntimeLibrary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width