CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Posts
    1

    MDI - Gurus Please help!!!!

    Is it possible to keeping an independent form on the top of an MDI form, whatever events are being fired ?
    Please let me know if there is any workaround or possible variation. Thanks in advance.
    Indro


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: MDI - Gurus Please help!!!!

    you could set the borderstyle to "Fixed Toolwindow" in VB 6.
    That way the window will always remain on top of all mdi children.


  3. #3
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: MDI - Gurus Please help!!!!

    For the form you want to stay on top, set the MDIChild property to False and then when you call the form from the mdiMain form, pass the Show method the vbModal parameter.

    Ex.
    private Sub mnuShowForm_Click()
    frmShowOnTop.Show vbModal
    End Sub



    This will show the frmShowOnTop form above the mdi form and also remain on top until it is closed. The mdi form will however, be unaccessible until this form is closed.

    Hope this helps a little,

    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

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