Is there some way in the usercontrol to surpress painting during resize

  • Thread starter Thread starter **Developer**
  • Start date Start date
D

**Developer**

I'm geting a lot of flashing while resizing a form containing one of my
usercontrols that is docked fill.

This doesn't alway happen, depends on what is visible on the control.

Is there some way in the usercontrol to suppress painting during the resize?


Thanks
 
I can see that it is the components on the usercontrol that are flashing.

In the usercontrol I tried:

Me.SetStyle(ControlStyles.DoubleBuffer, True)

Me.SetStyle(ControlStyles.AllPaintingInWmPaint, True)

but it didn't help.
 

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

Back
Top