Click to See Complete Forum and Search --> : Screen Refresh - RichTextBox


gokaraju
July 28th, 1999, 04:09 PM
I have a RichTextBox populated with a .rtf file in a form. The requirement is to highlight the next word that is in blue color (acutally, any color that is not black) when the user press F2 key.

To implement this functionality, I used UpTo function to jump to next available <space> ,' vbCR, vbLF etc., and select the first letter of the word and check the color. The problem here is that when I select the first letter of a word to check the color it highlights the letter which I want to avoid.

I want to stop screen updating (refresh) and do this searching process and then redraw the screen.

I was looking for a method which is mimilar to "Application.ScreenUpdating" method in VBA.

If you know the solution or workaround to address this requirement or to solve the screen update problem, please respond as soon as possible.

Appreciate your help.

Vasu

Ravi Kiran
July 29th, 1999, 12:33 AM
There is a window message WM_SETREDRAW which can be sent with FALSE/TRUE to block/unblock the updating of the window.

May be you could try this...
Ravi Kiran