Weird Form Focus Problems With the Mouse
Here is a weird behavior;
VB6 SP5 and Windows2K
I have a form with the form MouseMove event set to Me.Setfocus; when the application runs, if I click on a blank space on the windows taskbar, the form still is the top window but its taskbar button is no longer pressed (form is no longer focused); now, if i move the mouse over the form, the form flickers rapidly about 20-30 times, settting itself to focus and unfocus alternatively before it stops and remains in a focused state; occasionally, this behavior will happen just when I start the application and not unfocus the application first.
Anybody have an ideas what could be causing this? Is this a bug with VB6? How might I fix this? My current workaround is to do a loop in the MousMove event that will set the focus about 20 times so that the flickering is less noticeable (it ends quicker); Is there something I am overlooking when dealing with MouseMove and focusing a form?
Thank you!
–Llyal