Toolbar flickering on form resize

M

metalseb

Hi there.

I've got a form with several controls in it; treeview, tistview and a
toolbar. All the controls are anchored so that they resize according to the
form window resizing events. all is fine except for the toolbar and the
statusbar which flicker a lot while resizing the window. I'm using XP visual
style for all my controls.

I think I might enable double buffering but this is not possible for child
controls of the form. Pity. Any ideas to get rid of this ?
 
G

Guest

Before changing the TreeView control, invoke the BeginUpdate method. After
you have finished all the changes, invoke EndUpdate. This way the control
will only draw once, not once for every item added, deleted or changed in the
tree view. This should alleviate your flicker.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top