Flickering XP styles

gustofer
gustofer used Ask the Experts™
on
I recently added visual styles to my vb6 project and managed to get it all working fine apart from a problem with flickering. When the mouse moves over components (text field, list box) they seem to take control and then the labels/frame flickers for a bit. If I move the mouse to another component it flickers again. I found that it only flickers when I add a frame to the form. Without visual styles it works fine. Any suggestions?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
1) Remove any doevents in any paint events
2) set the form's autoredraw = false
3) set each control's autoredraw to false (many wil not have one)
4) Make sure on mousemove you are not doing any lengthy processing.  If you are, move it out of mousemove
gustofer,
No comment has been added lately (81 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to twalgrave

Please leave any comments here within 7 days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thanks,

Dabas
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post a request in Community support (with a link to this page) to refund your points. http://www.experts-exchange.com/Community_Support/
Finalized as recommended

RotaredoM
CS Mod @ EE

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial