Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to insert text when Texbox.MaxLength is set
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00815672
Message ID:
00815676
Views:
10
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
Previous
Reply
Map
View

Click here to load this message in the networking platform