Results 1 to 3 of 3

Thread: open a mdi child from an other child - RESOLVED

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Location
    Porto Alegre, RS
    Posts
    210

    Talking open a mdi child from an other child - RESOLVED

    I have a mdi form on my application, and a mdi child that have a button that i want to open other form, that is also a mdi child.
    i´ve tried this:
    VB Code:
    1. Dim f As New adi_clientes
    2.         f.Parent = Me.ParentForm
    3.         f.Show()
    and
    VB Code:
    1. Dim f As New adi_clientes
    2.         f.Parent = Me.Parent
    3.         f.Show()

    but it doesn´t work!

    Anybody have some help??

    Thank You,
    Guilherme Costa
    Last edited by gccosta; Sep 30th, 2003 at 01:39 PM.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Location
    Porto Alegre, RS
    Posts
    210

    RESOLVED

    VB Code:
    1. Dim f As New adi_clientes
    2.         f.MdiParent = Me.ParentForm
    3.         f.Show()

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    If both are MDIChildren then this should work also:
    VB Code:
    1. Dim f As New adi_clientes
    2.         f.MdiParent = Me.MdiParent
    3.         f.Show()

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