Hi Ramil
You have in fact answered your own question. If you alltrim the value, then the length of the result is the max number of letters you can enter. You should try padr(alltrim(yourfield),25).
>>>Hi all,
>>>
>>>I have a textbox which is 80 pixels wide without any other change to other properties. When I type in the textbox, it only allows me to enter 12 characters. I've set the textbox.value = space(25) on form init. I set the textbox value to a data from a table whose fieldlength is 100 char. If the field value is 10 characters long, I can only enter 10 chars; if it is 15, I can only enter 15 chars.
>>
>>Set the textbox.MaxLength property to 25.
>
>Thanks for the reply. I've done that and it still does not work.
>
>I've traced it to the code that assigns the value to the textbox where I ALLTRIMmed the field value. When I remove the alltrim, it accepts more than 25 chars or probably up to 100 (the fieldlength, I did not really verify this).