Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change color when skipping
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00095050
Message ID:
00095111
Vues:
21
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform