Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change color when skipping
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00095050
Message ID:
00095111
Views:
20
Sunny,

You can put the code in the textbox.Refresh() method.

this.ForeColor = iif( this.Value < 0, rgb(255,0,0), rgb(0,0,0) )
this.BackColor = ...

>I want to change the textbox's color to alter the user when skipping records. For example, the normal color of 'profit'(txtbox) is black in white. The user click the [NEXT] button again and again to find the negative value of 'profit'. Sometimes, the user may miss the target but changing the txtbox's color (eg. red in white) can alter the user.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform