Results 1 to 5 of 5

Thread: Flash TitleBar?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Posts
    253
    ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
    Last edited by smashtheqube; Jan 11th, 2019 at 01:39 AM.

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Yep, and I've even done you an example :
    Code:
    Private Declare Function FlashWindow Lib "user32" _
    (ByVal hwnd As Long, ByVal bInvert As Long) As Long
    Const Invert = 1
    
    Private Sub Timer1_Timer()
        FlashWindow Me.hwnd, Invert
    End Sub
    Place a timer control on the form of a new project & shove the above into the code window. Set the interval of the timer to something like 100 & hit F5 to see how this works

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Posts
    253
    ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
    Last edited by smashtheqube; Jan 11th, 2019 at 01:38 AM.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Posts
    253
    ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
    Last edited by smashtheqube; Jan 11th, 2019 at 01:38 AM.

  5. #5
    chenko
    Guest
    Make sure you have the timer set.

    Code:
    Private Declare Function FlashWindow Lib "user32" _
    (ByVal hwnd As Long, ByVal bInvert As Long) As Long
    Const Invert = 1
    
    Private Sub Timer1_Timer()
        FlashWindow Me.hwnd, Invert
    End Sub
    
    Private Sub Form_Load()
       Timer1.Interval = 1000
    End Sub

    Si.

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