RichTextBox syntax highlighting in real time–Disabling the repaint

It is an oversight in the RichTextBox class. Other controls, like ListBox, support the BeginUpdate and EndUpdate methods to suppress painting. Those methods generate the WM_SETREDRAW message. RTB in fact supports this message, but they forgot to add the methods. Just add them yourself. Project + Add Class, paste the code shown below. Compile and … Read more