Results 1 to 3 of 3

Thread: mdi child ???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Location
    North east UK
    Posts
    129

    mdi child ???

    Hi all, i have written a function that calls an existing form and jumps to a new record. Any idea how i tell it that it is an mdichild of frmMain.

    Cheers

    Code:
    Public Function addnewNS()
            
            'open the form and add a new record
            Dim frmNS As New frmNS
            frmNS.Show()
            frmNS.BindingContext(frmNS.objdsCDets_SDets, "CDets").AddNew()
    
        End Function

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    VB Code:
    1. 'sets frmns to be an MDIChild of Me
    2.  'assuming me is an MDIForm
    3.  frmNS.MdiParent = Me

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Location
    North east UK
    Posts
    129
    Many thanks,

    Colin

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