RichTextBox MaxLength doesn't work (for me)

  • Thread starter Thread starter active
  • Start date Start date
A

active

I have a RichTextBox with MaxLength = 30 on a usercontrol.

I can type more that 30 characters into it.

Isn't the box supposed to stop accepting at 30???


Any idea what I may have wrong?



Cal
 
active said:
I have a RichTextBox with MaxLength = 30 on a usercontrol.

I can type more that 30 characters into it.

Isn't the box supposed to stop accepting at 30???


Any idea what I may have wrong?

I can not type more than 30 characters. I'm using Framework 1.1.
 
* " active said:
I have a RichTextBox with MaxLength = 30 on a usercontrol.

I can type more that 30 characters into it.

Isn't the box supposed to stop accepting at 30???

Works for me as expected.

<msdn>
Note In code, you can set the value of the Text property to a value
that has a length greater than the value specified by the MaxLength
property. This property only affects text entered into the control at
run time.
</msdn>
 
I'm not doing it in code, I'm typing.
I'm also using 1.1
Now that I know it should work I'll inspect the code (rather large) more to
see if what's wrong.

Thanks
Cal
 
Back
Top