Results 1 to 3 of 3

Thread: need help on MDIform

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    2

    need help on MDIform

    I have one form which is MDIParent (formA), now i call a MDIchild (formB) from formA.

    code:
    Dim f as new formB
    f.MDIParent=Me
    f.show()

    On formB, i have a button to call another normal form (formC).
    My question is, how to make formC as child for formA?

    thank you for your replies... i really appreciate it....

  2. #2
    Member
    Join Date
    Jul 2002
    Posts
    49
    Just set formC to have the same parent as formB. So from within formB you would use this code.

    Dim formC As New Form()
    formC.MdiParent = Me.ParentForm
    formC.Show()

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    2
    thank you for the code.... and my project now run smoothly....

    thanks....

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