Flickering on toolbar

Add-in Express™ Support Service
That's what is more important than anything else

Flickering on toolbar
 
Hernan




Posts: 37
Joined: 2011-01-28
Hi, I'm currently developing a toolbar for IE, and I'm seeing some flickering on the toolbar when resizing the browser. I'm currently using a panel to display a background image (as instructed in http://www.add-in-express.com/forum/read.php?FID=10&TID=9483), and when I resize the browser, all the background flickers, but not the controls over the panel (such as a label or a button).
At first I thought it might be the IE theme and the background panel fighting to see who draws. But then I noticed that the X button on the leftmost side of the toolbar (the one that lets you disable it) flickers on resizes, too, at the same rate as the background. And as far as I can tell, I have no direct control over the X button.
I tried overloading the Paint events of both the toolbar and the panel, but I had no luck towards fixing the issue.
Is there something I can do to prevent all this flickering? I can provide an example project and a video if needed.

Thanks in advance!
Posted 30 Jun, 2011 09:54:10 Top
Hernan




Posts: 37
Joined: 2011-01-28
Hi, I did some more reseach, and I've seen it happening on other toolbars as well, so I suspect that it's more of an IE thing.
I changed the panel for a picturebox, and the flickering is gone, so the issue is solved.

Thanks!
Posted 30 Jun, 2011 11:05:25 Top
Andrei Smolin


Add-in Express team


Posts: 19138
Joined: 2006-05-11
Hi Hernan,

Many thanks for posting the description of the problem and the solution here!

Good luck with your project!


Andrei Smolin
Add-in Express Team Leader
Posted 30 Jun, 2011 11:10:49 Top