>Txtbox has no such events. Is there any other way to do that?
>
>Sunny
>
If you are using a 'Next' button then you must be doing some processing to get the next record - in here you can specify the color of the textbox before you refresh it. I'm not sure if you can specify it as xxx,xxx,xxx - if not, it is stored as a very long number (try manually changing to red-on-white then writing the value to a variable and use debugger to display the variable - this will tell you what to change it to). Then your 'Next' button can change the foregroundcolor of the textbox.