CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1

    How do I make one form the child of another

    I have two different forms. One is the main form, the other is the options box. When i click on the button to display the options box I want it to come up as centered on the main dialog box. I've tried using the setting centered on parent, but that doesn't work, because the main form isn't the parent of the options form. Any ideas?


  2. #2
    Join Date
    Sep 1999
    Location
    London , UK
    Posts
    22

    Re: How do I make one form the child of another

    Set the MDIChild property of the Options dialog to True. Ensure the main form is based on an MDI form object.


  3. #3
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: How do I make one form the child of another

    frmOptions.Show vbModal (or modeless), Me
    Me is the owner form so it should be centered

    Crazy D @ Work :-)

  4. #4
    Guest

    Re: How do I make one form the child of another



    private Sub Command1_Click()
    YourForm.Show false ,me
    'Change false to true to display the form as modal
    End Sub





    Rippin


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

Featured