Form In Taskbar Blinking... vb6

I have a samll popup form (stays always on top).  When I click on a open worksheet, this form becomes dim (in active).  Now, when user moves the cursor back over a control on this popup form (with out clicking of course), ControlTip Text doesn't show (simply because the form hasn't received the focus).  To make sure taht ControlTip Text shows, I have to click on the form first and then move on a control to be able to see ControlTip Texts.

I added me.SetFocus to mouse move event of the control to cause the form to receive the focus and user doesn't have to click on the form.

Now, as soon as I move the cursor over this (in active) form, form's icon in the task bar starts blinking.  I end up clicking on the form anway.

Question, is there a way to avoid this click on the form.

LVL 34
Mike EghtebasDatabase and Application DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike TomlinsonMiddle School Assistant TeacherCommented:
The behaviour you are describing is a feature of windows that "prevents applications from stealing focus".  Instead of apps taking the focus, they instead blink either indefinitely or for a configured number of times in the taskbar.  These setttings are stored in the registry.  The easiest way to change these settings are through Microsofts Tweak UI utility.

Download the Tweak UI tools from Microsoft:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shiju SasidharanAssoc Project ManagerCommented:
Hi try this
'To Flash a Window
Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long

   If <Your_Condition> Then
        Call FlashWindow(Me.hwnd, True)


Mike EghtebasDatabase and Application DeveloperAuthor Commented:
To All,

The condition described in the question is not taking place all the time.  Sometimes, I don't have that problem at all.  I will keep testing it for a few days to figure out it.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.