Category / Section
How to suspend and resume painting of the WinForms SyntaxEditor (EditControl)?
1 min read
Painting method
Painting of the Edit control can be suspended using the Suspend method call. Painting can be resumed using Resume method call. Suspend and Resume methods internally call the interop method and LockWindowUpdate method to suspend and resume painting of the Edit control.
C#
this.editControl1.SuspendPainting(); this.editControl1.ResumePainting();
VB
Me.editControl1.SuspendPainting() Me.editControl1.ResumePainting()
Reference link: https://help.syncfusion.com/windowsforms/syntax-editor/appearance#suspend-and-resume-painting