Keeping an application on top and in focus - always
        Posted  
        
            by James Newton-King
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by James Newton-King
        
        
        
        Published on 2010-03-15T03:00:30Z
        Indexed on 
            2010/03/15
            3:19 UTC
        
        
        Read the original article
        Hit count: 325
        
I am creating a kiosk application and I want to ensure it is always, no matter what, on top of other Windows applications and the Windows task bar.
I am already blocking Windows keyboard commands (alt-tab, etc) but there are still situations that could cause an application to launch and steal the screen.
Is it possible to hook into Windows from .NET and continually test whether the application has focus and is on top, and if not then give it focus and make it on top?
© Stack Overflow or respective owner