Results 1 to 4 of 4

Thread: [VB6] Force Foreground Window Demo

  1. #1

    Thread Starter
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Cool [VB6] Force Foreground Window Demo

    The attached project demonstrates how to utilize various APIs to force a window to the foreground. Keep in mind though, that these techniques would probably annoy your users if your window forcibly stealed the focus from whatever they're currently doing.


    Name:  ForceForeground.png
Views: 8527
Size:  7.0 KB
    Attached Files Attached Files

  2. #2
    Frenzied Member
    Join Date
    Jun 2012
    Location
    Australia
    Posts
    1,162

    Re: [VB6] Force Foreground Window Demo

    If that is not a very long piece of code, can you post it please?

    Meanwhile, as I have said I have the main screen flashing and within the loop that does that I'd like to explore the idea of adding and removing a 'dummy' icon as a possible solution.
    Thanks all !

  3. #3
    Hyperactive Member
    Join Date
    Aug 2017
    Posts
    380

    Re: [VB6] Force Foreground Window Demo

    Quote Originally Posted by el84 View Post
    If that is not a very long piece of code, can you post it please? ...
    Here's my reply in your thread.

  4. #4
    Frenzied Member
    Join Date
    Jun 2012
    Location
    Australia
    Posts
    1,162

    Re: [VB6] Force Foreground Window Demo

    Works fine. Also in 'Flashing icon in taskbar' thread. In my case, I wanted my warning window to steal the focus. Thanks Bonnie
    Thanks all !

Tags for this Thread

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