Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to insert text when Texbox.MaxLength is set
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00815672
Message ID:
00815676
Vues:
12
Hi Don,

That behaviour (in VB.Net) seems pretty straight forward to me. But you're right, in VFP the cursor moves to the next to last position and you can change the last character without hitting delete.

I'm sorry I don't have an answer for you - although you could probably check the string length in the key press event and move the cursor to the second to last position in the textbox if the text length equals the max length property.

Al

>In VB.Net textboxes where I have set the MaxLength property I cannot insert or overwrite characters when the maximum length is reached. In VFP and other programs,I am used to the last letters scrolling off in insert mode, or the text being overwritten by the new keystrokes. The way it is I am forced to delete characters before I can change any others.
>
>Does anyone know how to change this behaviour? It is unacceptable.
Al Williams

Anola MB, CANADA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform