I'm trying to highlight certain keywords AS THE USER TYPES text in a rich textbox. The only way I could think of was to search through the whole textbox everytime the CHANGED event is fired, and then colorize the keywords (which turns out to be really slow).

The problem is that it flickers alot, because I'm selecting and unselecting certain keywords in order to colorize them. I tried the suspendlayout method, but sounds like it doesnt do anything whatsoever