Results 1 to 2 of 2

Thread: Detecting Show Desktop

  1. #1

    Thread Starter
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Detecting Show Desktop

    I have an application that is running as an AppBar using the SHAppBarMessage API. It works great except when a user clicks the show desktop button. This causes my application to go away and it will not show up again until the user clicks another application. Is there a way to detect when the ShowDesktop button was clicked, so I can make sure my app stays in the foreground?

    I tried detecting the Form_Resize event, but that is not fired when the user clicks the Show Desktop button.

    Any help would be appreciated.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Detecting Show Desktop

    Here is a thread about the same thing : http://www.vbforums.com/showthread.php?t=326167

    The only other way around a timer is subclassing, but I have no idea what message you would have to capture (if you can even do this).


    Has someone helped you? Then you can Rate their helpful post.

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