Results 1 to 3 of 3

Thread: Keep a child window in an MDI form on top

  1. #1

    Thread Starter
    Addicted Member Flip's Avatar
    Join Date
    Jun 2002
    Location
    Burke, VA
    Posts
    247

    Keep a child window in an MDI form on top

    how do you do that?

    (only on top of the other child windows in the same MDI form)
    The "company" website My homepage: nerisoft.com
    scars heal but glory is forever

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    I don't think there is a way to create the normal "Always On Top" effect with a MDI child, as that would defeat the purpose of the MDI interface. The best you can hope to do is to simulate a modal form like this (in the form you wish to keep on top)...
    VB Code:
    1. Private Sub Form_Deactivate()
    2.     Me.ZOrder
    3. End Sub

    But that is still a little flawed.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Addicted Member Flip's Avatar
    Join Date
    Jun 2002
    Location
    Burke, VA
    Posts
    247
    hmmm
    perhaps you are right, but it has been my expericance that everything that is reasonably feasible is possible in vb. I don't understand why you think that would be a useless feature. My prog essentially lets you create TI-83+ BASIC programs on the computer (in a MUCH better fasion than TI-Graph Link). The user can pop open a form with a pic of a TI and then press its buttons and the functions will appear in the prog. But I want to give the user the option of keeping this tool on top. I guess it doesn't have to be a child, but i think it is cleaner this way.

    Anyway thanks for your and everyone else's help. If i find anything, ill post it, but that you super-smart guys will probly find it faster ; )
    The "company" website My homepage: nerisoft.com
    scars heal but glory is forever

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