Home > Net >  Help!!!!! Vb.net with code LABLE production label flicker problem when processing.
Help!!!!! Vb.net with code LABLE production label flicker problem when processing.

Time:09-25

My program code:
Step 1: remove all LABLE
Step 2: generate LABLE 20
Program is running, there is flickering problem, how to solve, and on the Internet to find but didn't know how to operate,
I can provide the source file, a reward for help,

CodePudding user response:

Try the double buffer
Controls. DoubleBuffered=true;

For batch operation, can use a custom interface, set the double cache, let your label to implement this interface

CodePudding user response:

I have done similar things, but when I was in Form_Load directly generate a, then later don't really delete, delete just let the Lable is not visible, regenerate the operation, also is not really to regenerate, gives them new text value, and then make them visible, which reduces the refresh

CodePudding user response:

Not label problem, is to load the label's parent,
Parent should rewrite a loaded label, such as dynamic loading label is FlowLayoutPanel
Public Class Flow1
Inherits Windows. Forms. FlowLayoutPanel
Sub New ()
Me. SetStyle (ControlStyles. AllPaintingInWmPaint, True)
Me. SetStyle (ControlStyles. OptimizedDoubleBuffer, True)
Me. SetStyle (ControlStyles. UserPaint, True)
Me. DoubleBuffered=True
Me. AutoScroll=True
Me. The Dock=DockStyle. The Fill
End Sub
The End of the Class
Dynamic loading label, then flow1 picturebox and so on, a little flashing all didn't,
  • Related