Results 1 to 4 of 4

Thread: [RESOLVED] Pass data from MDI Child to Parent

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Resolved [RESOLVED] Pass data from MDI Child to Parent

    hi guys help please..how will I past data from the active MDI Child form to MDI Parent Form? Thanks in advance!

  2. #2
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Re: Pass data from MDI Child to Parent

    Take a look at the following code.


    Code:
    MDIForm theParent = (MDIForm)this.MdiParent;
    then just use the object theParent like any othere.

    Hope this helps!!!

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Pass data from MDI Child to Parent

    Likewise the parent can get a reference to the child form from its ActiveMdiChild property.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Pass data from MDI Child to Parent

    Thanks a lot guys! it work the way i want it.

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