Well, that's a tall order. In order to do anything without flickering
though, you need to double buffer the drawing. In other words, you create a
compatable device context, draw on that, and then copy it over to the
current device context.
You used to do it with a call to BitBlt. However, with controls, you
can just call the SetStyle method on your control and set the
OptimizedDoubleBuffer flag to true. Then, you make sure that all of your
painting is done in your overridden OnPaint method.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<Le************@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hello Gurus
At present i am developing an editor using C#.....
How can i achieve Syntax highlighting, comment highlighting
and other stuffs without flickering...
thanks in advance