Information générale
Catégorie:
Codage, syntaxe et commandes
> In KeyPress event you can check SelStart property and if it equals to 0, you intercept the case and, I think, using setfocus() with nodefault will restore focus to the textbox.
actually after you trapped the backspace in the Keypress event (and confirmed it will get outof the field - either by if alltrim(this.value)="" or by what Edwards said or whatever) issueing a NODEFAULT will prevent the
Keypress from being processed
Arnon
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement