Problem with TopMost Functionality in VB.NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phil Galey

    #1

    Problem with TopMost Functionality in VB.NET

    I have a small application, which is to always stay on top. Another
    application, which it is supposed to stay on top of, is QuarkXPress 5. I'm
    using Me.TopMost = True in the Form1_Deactivat e event, and it works almost
    perfectly. It always stays on top, except when I click on one of the tools
    in the floating tool bar of QuarkXPress. Anything else in QuarkXPress is no
    problem ... document, menus, etc. But click on anything on QuarkXpress'
    floating toolbar, and my VB.NET application says bye-bye.

    What event might I use in this situation to stop it from losing it's TopMost
    position? Thanks.


  • Armin Zingler

    #2
    Re: Problem with TopMost Functionality in VB.NET

    "Phil Galey" <pagaley@starca lif.com.nospam> schrieb[color=blue]
    > I have a small application, which is to always stay on top. Another
    > application, which it is supposed to stay on top of, is QuarkXPress
    > 5. I'm using Me.TopMost = True in the Form1_Deactivat e event, and
    > it works almost perfectly. It always stays on top, except when I
    > click on one of the tools in the floating tool bar of QuarkXPress.
    > Anything else in QuarkXPress is no problem ... document, menus, etc.
    > But click on anything on QuarkXpress' floating toolbar, and my
    > VB.NET application says bye-bye.
    >
    > What event might I use in this situation to stop it from losing it's
    > TopMost position? Thanks.[/color]


    What if the other application wants to be topmost, too? Which one is more
    topmost? All topmost windows have their own z-order.

    Look for "z-order" or "topmost" here:
    http://msdn.microsoft.com/library/en...owfeatures.asp


    Armin

    Comment

    Working...