dennismagno / metroframework-modern-ui

My humble attempt to bring the new Modern UI alias Metro UI of Windows 8 to .NET Windows Forms applications.
http://dennismagno.github.io/metroframework-modern-ui
Other
861 stars 1.08k forks source link

MetroTextbox - Resize issue #59

Closed vantm closed 3 years ago

vantm commented 6 years ago

Hi Dennis,

When I resize the form, the textbox is not rendered well. 2017-12-03_21-02-54

Thanks, Van T.

simos-sigma commented 6 years ago

Have you set DoubleBuffered -> True in your form's properties?

PasanBhanu commented 6 years ago

Double buffering uses a memory buffer to address the flicker problems associated with multiple paint operations. When double buffering is enabled, all paint operations are first rendered to a memory buffer instead of the drawing surface on the screen. After all paint operations are completed, the memory buffer is copied directly to the drawing surface associated with it. Because only one graphics operation is performed on the screen, the image flickering associated with complex painting operations is eliminated.For most applications, the default double buffering provided by the .NET Framework will provide the best results. Standard Windows Forms controls are double buffered by default.

Try by setting Double Buffered = True in Form Properties

This happens when your computer performance (graphical) not sufficient to render redrawing of WinForms.

Source : MDSN