• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

11. Windows APIs > 11.2. Flash a Window’s Titlebar or Icon

11.2. Flash a Window’s Titlebar or Icon

Problem

With so many windows open in your Access applications, it can be difficult to force your user’s attention to a specific form. Is there a way to make the titlebar flash so that a form really stands out?

Solution

Windows supplies a simple API call, FlashWindow, that allows you to flash the titlebar of a form or its icon (if it’s iconized) on and off. This solution will demonstrate how you can use the FlashWindow API call to draw attention to a specific form.

To include this functionality in your own applications, follow these steps:

  1. Add this API declaration to your code in the declarations section of the form’s module:

    Private Declare Function FlashWindow Lib "User32" _
     (ByVal hWnd As Long, ByVal lngInvert As Long) As Long

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint