Results 1 to 2 of 2

Thread: How to show owner form ontop of the other

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    How to show owner form ontop of the other

    I am creating an instance of a secondary form

    Dim frm as frmSecondary
    frm.show(me)

    But the secondary form is always over the initial form, how can i force the original to be ontop of the secondary form?
    If you find my thread helpful, please remember to rate me

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

    Re: How to show owner form ontop of the other

    In your code frm is the owned for and Me is the owner. While I've never actually done it this way the following should work:
    vb.net Code:
    1. Dim frm as frmSecondary
    2.  
    3. frm.AddOwnedForm(Me)
    4. frm.Show()
    Now Me is the owned form and from is the owner.
    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

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