Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maxlength madness
Message
 
 
À
11/02/2016 17:00:55
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01631330
Message ID:
01631336
Vues:
34
>>>This winform app uses datatables in typed datasets bound to data entry controls.
>>>
>>>I'm getting weird results with the maxlength property of textboxes.
>>>
>>>A maxlength of 2 works exactly as you'd expect. You can enter 2 or fewer characters into the textbox.
>>>
>>>With maxlength of 5, however, I can only enter 3 characters. In order to enter 5 I must make the maxlength 8.
>>>
>>>Character casing is upper, but I can't find anything about that.
>>>
>>>Any ideas?
>>
>>What is the type and length of the column? Can you also show your code and how do you test it? Are you manually typing?
>
>Column is char(5)
>
>
> SetTextBox(TextBoxZip, LeftStart, TextTop, 50, ssprocessds.company, "zip", LabelZip, "Zip");
>            TextBoxZip.MaxLength = 5;
>
>SetTexBox sets the control on the form and does binding.
>
>I'm testing it by typing on the form.

Is it only this one textbox on that form? Also, why do you reference company in your code and not zip?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform