>Txtbox has no such events. Is there any other way to do that?
>
>Sunny
>
The other answers are for grids; if you are viewing the data on a regular form (not in a grid, I mean), then put in your textbox'es .refresh
if this.value<0
this.forecolor=Rgb(127,0,0)
else
this.forecolor=0
endif
You may need a DoDefault() before and NoDefault after this, or it may work just like that (haven't tried myself).