Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to deactivate the backspace key ?
Message
 
 
À
09/08/2005 14:22:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01039614
Message ID:
01039707
Vues:
17
Kouakou,

If what you are trying to accomplish is to prevent backspace from taking you out of a textbox into the previous control (one of the most truly annoying things in VFP) is to put this code into your lowest level textbox subclass:
LPARAMETERS nKeyCode, nShiftAltCtrl

if ( ( m.nKeyCode = 127 ) and ( this.SelStart = 0 ) )
   * prevent backspace from leaving this field
   nodefault
endif
>how to deactivate the backspace key ?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform