Application highlight in taskbar

You can easily highlight the icon of your vb application in the taskbar. To do this we need to use a Windows API.

Imports System.Runtime.InteropServices

Public Class Form1
    <DllImport("user32.dll", EntryPoint:="FlashWindow")> _
    Public Shared Function FlashWindow(ByVal hwnd As Integer, _
    ByVal bInvert As Integer) As Integer
    End Function
End Class

And its usage:

FlashWindow(Me.Handle, 1)


One thought on “Application highlight in taskbar

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>